aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/backports_os
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/backports_os')
-rw-r--r--nixpkgs/pkgs/development/python-modules/backports_os/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/backports_os/default.nix b/nixpkgs/pkgs/development/python-modules/backports_os/default.nix
new file mode 100644
index 00000000000..dc969cbb4b9
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/backports_os/default.nix
@@ -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 ];
+ };
+}