about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pathlib/default.nix
blob: cf4dd0999d4a311af466f112001b919c91297b2f (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
{ lib
, buildPythonPackage
, fetchPypi
, python
, pythonAtLeast
}:

buildPythonPackage rec {
  pname = "pathlib";
  version = "1.0.1";
  disabled = pythonAtLeast "3.4"; # Was added to std library in Python 3.4

  src = fetchPypi {
    inherit pname version;
    sha256 = "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  meta = {
    description = "Object-oriented filesystem paths";
    homepage = "https://pathlib.readthedocs.org/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ costrouc ];
  };
}