1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "python-fsutil";
13 version = "0.15.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "fabiocaccamo";
20 repo = "python-fsutil";
21 tag = version;
22 hash = "sha256-hzPNj6hqNCnMx1iRK1c6Y70dUU/H4u6o+waEgOhyhuA=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ requests ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 disabledTests = [
32 # Tests require network access
33 "test_download_file"
34 "test_read_file_from_url"
35 ];
36
37 pythonImportsCheck = [ "fsutil" ];
38
39 meta = with lib; {
40 description = "Module with file-system utilities";
41 homepage = "https://github.com/fabiocaccamo/python-fsutil";
42 changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}