depot/third_party/nixpkgs/pkgs/development/python-modules/python-fsutil/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

53 lines
961 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "python-fsutil";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fabiocaccamo";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Swq0kAZTM/zP3LXMkzZnp8KTI0YzGPIbWV2kKV1Dw0k=";
};
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; {
broken = stdenv.isDarwin;
description = "Module with file-system utilities";
homepage = "https://github.com/fabiocaccamo/python-fsutil";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}