Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-fsutil / default.nix
blobc1c433ddd2db66c2c83078251f07161730ed6736
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , requests
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "python-fsutil";
12   version = "0.14.1";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "fabiocaccamo";
19     repo = "python-fsutil";
20     rev = "refs/tags/${version}";
21     hash = "sha256-Cs78zpf3W5UZJkkUBEP6l6fi2J4OtJXGvqqQ8PWKx+8=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     requests
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pytestFlagsArray = [
37     "tests/test.py"
38   ];
40   disabledTests = [
41     # Tests require network access
42     "test_download_file"
43     "test_read_file_from_url"
44   ];
46   pythonImportsCheck = [
47     "fsutil"
48   ];
50   meta = with lib; {
51     description = "Module with file-system utilities";
52     homepage = "https://github.com/fabiocaccamo/python-fsutil";
53     changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
54     license = licenses.mit;
55     maintainers = with maintainers; [ fab ];
56   };