2021-01-25 08:26:54 +00:00
|
|
|
|
{ lib
|
2017-08-24 08:55:09 +00:00
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchPypi
|
2021-06-03 10:09:11 +00:00
|
|
|
|
, setuptools-scm
|
2017-08-24 08:55:09 +00:00
|
|
|
|
# , backports
|
|
|
|
|
, python
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "backports.weakref";
|
2017-10-25 18:04:35 +00:00
|
|
|
|
version = "1.0.post1";
|
2017-08-24 08:55:09 +00:00
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2017-10-25 18:04:35 +00:00
|
|
|
|
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
|
2017-08-24 08:55:09 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
|
buildInputs = [ setuptools-scm ];
|
2017-08-24 08:55:09 +00:00
|
|
|
|
# checkInputs = [ backports ];
|
|
|
|
|
|
|
|
|
|
# Requires backports package
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
|
${python.interpreter} -m unittest discover tests
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2017-08-24 08:55:09 +00:00
|
|
|
|
description = "Backports of new features in Python’s weakref module";
|
|
|
|
|
license = licenses.psfl;
|
2017-09-12 07:59:28 +00:00
|
|
|
|
maintainers = with maintainers; [ jyp ];
|
2017-08-24 08:55:09 +00:00
|
|
|
|
};
|
|
|
|
|
}
|