1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7 pythonOlder,
8 poetry-core,
9}:
10
11buildPythonPackage rec {
12 pname = "pathable";
13 version = "0.4.4";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "p1c2u";
20 repo = "pathable";
21 tag = version;
22 hash = "sha256-nN5jpI0Zi5ofdSuN9QbTHDXPmQRq9KAn8SoHuNDpZaw=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "pathable" ];
33
34 meta = with lib; {
35 description = "Library for object-oriented paths";
36 homepage = "https://github.com/p1c2u/pathable";
37 changelog = "https://github.com/p1c2u/pathable/releases/tag/${version}";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ fab ];
40 };
41}