about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-07-05 00:31:46 +0200
committerGitHub <noreply@github.com>2018-07-05 00:31:46 +0200
commitc6bea115670cbcdecf03adb40fd1cd39020313d3 (patch)
tree79bf4a2b24cadb2fd6eeec7c1699aea0305533f0 /pkgs/development/python-modules
parent5a859d9b10a9423b75b0587c70aa9afaeb4a51b8 (diff)
parent7703bd9edbb96c715d7f53d972e9cd18ec55c030 (diff)
downloadnixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar.gz
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar.bz2
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar.lz
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar.xz
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.tar.zst
nixlib-c6bea115670cbcdecf03adb40fd1cd39020313d3.zip
Merge pull request #42950 from Ma27/fix-py-keyutils
pythonPackages.keyutils: fix build
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/keyutils/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/keyutils/default.nix b/pkgs/development/python-modules/keyutils/default.nix
index b07dd4abd0d2..907af4d250b3 100644
--- a/pkgs/development/python-modules/keyutils/default.nix
+++ b/pkgs/development/python-modules/keyutils/default.nix
@@ -1,17 +1,19 @@
-{ lib, buildPythonPackage, fetchPypi, keyutils, pytestrunner }:
+{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytestrunner, pytest }:
 
 buildPythonPackage rec {
   pname = "keyutils";
   version = "0.5";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "0dskys71vkn59vlsfs1ljli0qnzk7b10iv4pawxawnk2hvyjrf10";
+  # github version comes bundled with tests
+  src = fetchFromGitHub {
+    owner = "sassoftware";
+    repo = "python-keyutils";
+    rev = "v${version}";
+    sha256 = "1gga60w8sb3r5bxa0bfp7d7wzg6s3db5y7aizr14p2pvp92d8bdi";
   };
 
-  checkInputs = [ keyutils pytestrunner ];
-
-  doCheck = false;
+  buildInputs = [ keyutils ];
+  checkInputs = [ pytest pytestrunner ];
 
   meta = {
     description = "A set of python bindings for keyutils";