nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / python-fsutil / default.nix
blob5bf32af287575963ee712e17fe812d622b946b89
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   requests,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "python-fsutil";
13   version = "0.14.1";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "fabiocaccamo";
20     repo = "python-fsutil";
21     rev = "refs/tags/${version}";
22     hash = "sha256-Cs78zpf3W5UZJkkUBEP6l6fi2J4OtJXGvqqQ8PWKx+8=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [ requests ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pytestFlagsArray = [ "tests/test.py" ];
33   disabledTests = [
34     # Tests require network access
35     "test_download_file"
36     "test_read_file_from_url"
37   ];
39   pythonImportsCheck = [ "fsutil" ];
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   };