You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
675 B
32 lines
675 B
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
# , backports
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backports.weakref";
|
|
version = "1.0.post1";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
|
|
};
|
|
|
|
buildInputs = [ setuptools-scm ];
|
|
# checkInputs = [ backports ];
|
|
|
|
# Requires backports package
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest discover tests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Backports of new features in Python’s weakref module";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ jyp ];
|
|
};
|
|
}
|
|
|