1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "python-fsutil";
11 version = "0.11.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "fabiocaccamo";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-8d/cjD7dcA4/bKZtQUjgUPVgfZdjl+ibOFRpC9dyybA=";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pytestFlagsArray = [
32 "tests/test.py"
33 ];
34
35 disabledTests = [
36 # Tests require network access
37 "test_download_file"
38 "test_read_file_from_url"
39 ];
40
41 pythonImportsCheck = [
42 "fsutil"
43 ];
44
45 meta = with lib; {
46 description = "Module with file-system utilities";
47 homepage = "https://github.com/fabiocaccamo/python-fsutil";
48 changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}