nixpkgs/pkgs/development/python-modules/backports_weakref/default.nix

33 lines
685 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools_scm
# , backports
, python
}:
buildPythonPackage rec {
pname = "backports.weakref";
2017-10-25 20:04:35 +02:00
version = "1.0.post1";
src = fetchPypi {
inherit pname version;
2017-10-25 20:04:35 +02:00
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
};
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 Pythons weakref module";
license = licenses.psfl;
maintainers = with maintainers; [ jyp ];
};
}