73a29e0b97
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
51 lines
907 B
Nix
51 lines
907 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-fsutil";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabiocaccamo";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-DY0QGHD7HdLnKnbPV17UZl9u3Ac9YZdYvQXLOzmRGos=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|