nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 53 lines 961 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "python-fsutil"; 12 version = "0.6.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "fabiocaccamo"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-Swq0kAZTM/zP3LXMkzZnp8KTI0YzGPIbWV2kKV1Dw0k="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pytestFlagsArray = [ 33 "tests/test.py" 34 ]; 35 36 disabledTests = [ 37 # Tests require network access 38 "test_download_file" 39 "test_read_file_from_url" 40 ]; 41 42 pythonImportsCheck = [ 43 "fsutil" 44 ]; 45 46 meta = with lib; { 47 broken = stdenv.isDarwin; 48 description = "Module with file-system utilities"; 49 homepage = "https://github.com/fabiocaccamo/python-fsutil"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}