1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, pythonAtLeast
6}:
7
8buildPythonPackage rec {
9 pname = "pathlib";
10 version = "1.0.1";
11 disabled = pythonAtLeast "3.4"; # Was added to std library in Python 3.4
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39";
16 };
17
18 checkPhase = ''
19 ${python.interpreter} -m unittest discover
20 '';
21
22 meta = {
23 description = "Object-oriented filesystem paths";
24 homepage = "https://pathlib.readthedocs.org/";
25 license = lib.licenses.mit;
26 maintainers = with lib.maintainers; [ costrouc ];
27 };
28}