1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 pycryptodomex, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyzipper"; 13 version = "0.3.6"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "danifus"; 20 repo = "pyzipper"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg="; 23 }; 24 25 __darwinAllowLocalNetworking = true; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ pycryptodomex ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "pyzipper" ]; 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 # Test wants to import asyncore 47 "test_CleanImport" 48 ]; 49 50 meta = with lib; { 51 description = "Python zipfile extensions"; 52 homepage = "https://github.com/danifus/pyzipper"; 53 changelog = "https://github.com/danifus/pyzipper/blob/v${version}/HISTORY.rst"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}