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.14.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "fabiocaccamo";
20 repo = "python-fsutil";
21 rev = "refs/tags/${version}";
22 hash = "sha256-Cs78zpf3W5UZJkkUBEP6l6fi2J4OtJXGvqqQ8PWKx+8=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [ requests ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pytestFlagsArray = [ "tests/test.py" ];
32
33 disabledTests = [
34 # Tests require network access
35 "test_download_file"
36 "test_read_file_from_url"
37 ];
38
39 pythonImportsCheck = [ "fsutil" ];
40
41 meta = with lib; {
42 description = "Module with file-system utilities";
43 homepage = "https://github.com/fabiocaccamo/python-fsutil";
44 changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}