From 663e41e6df4df274014c3447c1996c83af33deef Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 28 Jul 2022 18:10:13 +0200 Subject: [PATCH] python310Packages.pyte: 0.8.0 -> 0.8.1 --- .../python-modules/pyte/default.nix | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pyte/default.nix b/pkgs/development/python-modules/pyte/default.nix index 440a529cb4ff..e703a934466c 100644 --- a/pkgs/development/python-modules/pyte/default.nix +++ b/pkgs/development/python-modules/pyte/default.nix @@ -1,23 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytest-runner, wcwidth }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, wcwidth +}: buildPythonPackage rec { pname = "pyte"; version = "0.8.1"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-ub/Rt4F1nnVypuVTwBDMk+71ihnY0VkERthMGbGwl7A="; + src = fetchFromGitHub { + owner = "selectel"; + repo = pname; + rev = version; + sha256 = "sha256-gLvsW4ou6bGq9CxT6XdX+r2ViMk7z+aejemrdLwJb3M="; }; - nativeBuildInputs = [ pytest-runner ]; + postPatch = '' + # Remove pytest-runner dependency since it is not supported in the NixOS + # sandbox + sed -i '/pytest-runner/d' setup.py + ''; propagatedBuildInputs = [ wcwidth ]; checkInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_input_output" - ]; + pythonImportsCheck = [ "pyte" ]; meta = with lib; { description = "Simple VTXXX-compatible linux terminal emulator";