1{ lib
2, buildPythonPackage
3, fetchPypi
4, unittestCheckHook
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 nativeCheckInputs = [ unittestCheckHook ];
19
20 meta = {
21 description = "Object-oriented filesystem paths";
22 homepage = "https://pathlib.readthedocs.org/";
23 license = lib.licenses.mit;
24 maintainers = with lib.maintainers; [ ];
25 };
26}