depot/third_party/nixpkgs/pkgs/development/python-modules/python-fsutil/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "python-fsutil";
version = "0.14.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = "python-fsutil";
rev = "refs/tags/${version}";
hash = "sha256-Cs78zpf3W5UZJkkUBEP6l6fi2J4OtJXGvqqQ8PWKx+8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/test.py" ];
disabledTests = [
# Tests require network access
"test_download_file"
"test_read_file_from_url"
];
pythonImportsCheck = [ "fsutil" ];
meta = with lib; {
description = "Module with file-system utilities";
homepage = "https://github.com/fabiocaccamo/python-fsutil";
changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}