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.
33 lines
697 B
Nix
33 lines
697 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, fetchPypi
|
||
, setuptools-scm
|
||
# , backports
|
||
, unittestCheckHook
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "backports.weakref";
|
||
version = "1.0.post1";
|
||
src = fetchPypi {
|
||
inherit pname version;
|
||
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
|
||
};
|
||
|
||
buildInputs = [ setuptools-scm ];
|
||
# nativeCheckInputs = [ backports ];
|
||
|
||
# Requires backports package
|
||
doCheck = false;
|
||
|
||
nativeCheckInputs = [ unittestCheckHook ];
|
||
|
||
unittestFlagsArray = [ "tests" ];
|
||
|
||
meta = with lib; {
|
||
description = "Backports of new features in Python’s weakref module";
|
||
license = licenses.psfl;
|
||
maintainers = with maintainers; [ jyp ];
|
||
};
|
||
}
|