nixpkgs/pkgs/development/python-modules/backports_weakref/default.nix
2017-09-12 15:17:18 +02:00

34 lines
702 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools_scm
# , backports
, python
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "backports.weakref";
version = "1.0rc1";
src = fetchPypi {
inherit pname version;
sha256 = "14i8m3lspykdfpzf50grij3z286j9q8f32f2bnwdicv659qvy4w8";
};
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 ];
};
}