mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
7703bd9edb
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.
25 lines
672 B
Nix
25 lines
672 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytestrunner, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keyutils";
|
|
version = "0.5";
|
|
|
|
# github version comes bundled with tests
|
|
src = fetchFromGitHub {
|
|
owner = "sassoftware";
|
|
repo = "python-keyutils";
|
|
rev = "v${version}";
|
|
sha256 = "1gga60w8sb3r5bxa0bfp7d7wzg6s3db5y7aizr14p2pvp92d8bdi";
|
|
};
|
|
|
|
buildInputs = [ keyutils ];
|
|
checkInputs = [ pytest pytestrunner ];
|
|
|
|
meta = {
|
|
description = "A set of python bindings for keyutils";
|
|
homepage = https://github.com/sassoftware/python-keyutils;
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ primeos ];
|
|
};
|
|
}
|