at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "zipfile2"; 12 version = "0.0.12-unstable-2024-09-28"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "cournape"; 19 repo = "zipfile2"; 20 #rev = "refs/tags/v${version}"; 21 rev = "8823f7253772e5c5811343306a591c00c764c6d0"; 22 hash = "sha256-jDOyIj0sQS1dIsar4nyk5V2mme3Zc6VTms49/4n93ho="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "zipfile2" ]; 30 31 disabledTests = [ 32 # PermissionError: [Errno 1] Operation not ... 33 "test_extract" 34 ]; 35 36 meta = with lib; { 37 description = "Backwards-compatible improved zipfile class"; 38 homepage = "https://github.com/cournape/zipfile2"; 39 changelog = "https://github.com/itziakos/zipfile2/releases/tag/v${version}"; 40 license = licenses.psfl; 41 maintainers = with maintainers; [ genericnerdyusername ]; 42 }; 43}