forked from mirrors/nixpkgs
1d07be8be7
Diff: https://github.com/fabiocaccamo/python-fsutil/compare/refs/tags/0.7.0...0.8.0 Changelog: https://github.com/fabiocaccamo/python-fsutil/blob/0.8.0/CHANGELOG.md
53 lines
1,016 B
Nix
53 lines
1,016 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-fsutil";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabiocaccamo";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-J5B5THfB/yPG1JSCpO2HTHTH0jn0nbKFzXpZMGJ/dKA=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/fabiocaccamo/python-fsutil/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|