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