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