2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-10 19:00:37 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2018-10-10 19:00:37 +00:00
|
|
|
, future
|
|
|
|
, isPy3k
|
|
|
|
, python
|
|
|
|
, hypothesis
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.1.1";
|
|
|
|
pname = "backports.os";
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "b472c4933094306ca08ec90b2a8cbb50c34f1fb2767775169a1c1650b7b74630";
|
|
|
|
};
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2018-10-10 19:00:37 +00:00
|
|
|
checkInputs = [ hypothesis ];
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pjdelport/backports.os";
|
2018-10-10 19:00:37 +00:00
|
|
|
description = "Backport of new features in Python's os module";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|