2017-08-24 08:55:09 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, setuptools_scm
|
|
|
|
|
# , backports
|
|
|
|
|
, python
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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 07:59:28 +00:00
|
|
|
|
maintainers = with maintainers; [ jyp ];
|
2017-08-24 08:55:09 +00:00
|
|
|
|
};
|
|
|
|
|
}
|