@@ -0,0 +1,35 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, setuptools_scm
5+, future
6+, isPy3k
7+, python
8+, hypothesis
9+}:
10+
11+buildPythonPackage rec {
12+ version = "0.1.1";
13+ pname = "backports.os";
14+ disabled = isPy3k;
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "b472c4933094306ca08ec90b2a8cbb50c34f1fb2767775169a1c1650b7b74630";
19+ };
20+
21+ buildInputs = [ setuptools_scm ];
22+ checkInputs = [ hypothesis ];
23+ propagatedBuildInputs = [ future ];
24+
25+ checkPhase = ''
26+ ${python.interpreter} -m unittest discover tests
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ homepage = https://github.com/pjdelport/backports.os;
31+ description = "Backport of new features in Python's os module";
32+ license = licenses.mit;
33+ maintainers = [ maintainers.costrouc ];
34+ };
35+}