1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 poetry-core,
8}:
9
10buildPythonPackage rec {
11 pname = "pathable";
12 version = "0.4.4";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "p1c2u";
19 repo = pname;
20 tag = version;
21 hash = "sha256-nN5jpI0Zi5ofdSuN9QbTHDXPmQRq9KAn8SoHuNDpZaw=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 postPatch = ''
29 sed -i "/--cov/d" pyproject.toml
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}