summary refs log tree commit diff
path: root/pkgs/development/python-modules/keyutils
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-07-03 23:46:32 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-07-04 13:09:40 +0200
commit7703bd9edbb96c715d7f53d972e9cd18ec55c030 (patch)
tree0436b30db509c7b37ebc40f8277b13eeced06202 /pkgs/development/python-modules/keyutils
parent7db99ba53efc7959f36c93564d4485af6d7bcd6e (diff)
downloadnixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar.gz
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar.bz2
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar.lz
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar.xz
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.tar.zst
nixpkgs-7703bd9edbb96c715d7f53d972e9cd18ec55c030.zip
pythonPackages.keyutils: fix build
Fixes the Hydra CI build of `python{3,2}Packages.keyutils` on `nixpkgs.`
This patch changes the source retrieval to fetchFromGitHub as the PYPI
tarball doesn't come with tests for the check phase.
Diffstat (limited to 'pkgs/development/python-modules/keyutils')
-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 b07dd4abd0d..907af4d250b 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";