33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
804 B
Nix
47 lines
804 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, nose
|
|
, pythonOlder
|
|
, semver
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pkutils";
|
|
version = "3.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "reubano";
|
|
repo = "pkutils";
|
|
rev = "v${version}";
|
|
hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
semver
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
nosetests
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pkutils"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Python packaging utility library";
|
|
homepage = "https://github.com/reubano/pkutils/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|