2017-10-25 19:04:35 +01:00
|
|
|
{ lib
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2017-10-25 19:04:35 +01:00
|
|
|
, backports_weakref
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backports.tempfile";
|
|
|
|
version = "1.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1c648c452e8770d759bdc5a5e2431209be70d25484e1be24876cf2168722c762";
|
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2017-10-25 19:04:35 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ backports_weakref ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# requires https://pypi.org/project/backports.test.support
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Backport of new features in Python's tempfile module";
|
|
|
|
license = lib.licenses.psfl;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pjdelport/backports.tempfile";
|
2017-10-25 19:04:35 +01:00
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|