summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-07-28 18:10:13 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-08-12 15:41:19 -0700
commit663e41e6df4df274014c3447c1996c83af33deef (patch)
tree17bcb4c850dae429ffb3e434d41f7d373d409e77
parenta79c16c397f19b243d2028f877da993e788f1baf (diff)
python310Packages.pyte: 0.8.0 -> 0.8.1
-rw-r--r--pkgs/development/python-modules/pyte/default.nix25
1 files 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";