mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
pythonPackages.backports_os: init at 0.1.1
This commit is contained in:
parent
29d0eec15f
commit
3287e88cf0
35
pkgs/development/python-modules/backports_os/default.nix
Normal file
35
pkgs/development/python-modules/backports_os/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user