Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, pycryptodomex 7}: 8 9buildPythonPackage rec { 10 pname = "pyzipper"; 11 version = "0.3.6"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "danifus"; 18 repo = "pyzipper"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg="; 21 }; 22 23 propagatedBuildInputs = [ 24 pycryptodomex 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "pyzipper" 33 ]; 34 35 disabledTests = [ 36 # Tests are parsing CLI output 37 "test_args_from_interpreter_flags" 38 "test_bad_use" 39 "test_bad_use" 40 "test_check__all__" 41 "test_create_command" 42 "test_extract_command" 43 "test_main" 44 "test_temp_dir__forked_child" 45 "test_test_command" 46 ]; 47 48 meta = with lib; { 49 description = "Python zipfile extensions"; 50 homepage = "https://github.com/danifus/pyzipper"; 51 changelog = "https://github.com/danifus/pyzipper/blob/v${version}/HISTORY.rst"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}