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.
This commit is contained in:
Maximilian Bosch 2018-07-03 23:46:32 +02:00
parent 7db99ba53e
commit 7703bd9edb
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -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";