about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/backports_os/default.nix
blob: 214449708433624f804e5b07e47684ef75ffebd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, 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 lib; {
    homepage = "https://github.com/pjdelport/backports.os";
    description = "Backport of new features in Python's os module";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}