3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.backports_os: init at 0.1.1

This commit is contained in:
Chris Ostrouchov 2018-10-10 15:00:37 -04:00
parent 29d0eec15f
commit 3287e88cf0
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, setuptools_scm
, future
, isPy3k
, python
, hypothesis
}:
buildPythonPackage rec {
version = "0.1.1";
pname = "backports.os";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "b472c4933094306ca08ec90b2a8cbb50c34f1fb2767775169a1c1650b7b74630";
};
buildInputs = [ setuptools_scm ];
checkInputs = [ hypothesis ];
propagatedBuildInputs = [ future ];
checkPhase = ''
${python.interpreter} -m unittest discover tests
'';
meta = with stdenv.lib; {
homepage = https://github.com/pjdelport/backports.os;
description = "Backport of new features in Python's os module";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View file

@ -995,6 +995,8 @@ in {
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
backports_os = callPackage ../development/python-modules/backports_os { };
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
backports_ssl_match_hostname = if !(pythonOlder "3.5") then null else