summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/zipfile2/default.nix
blob: dab7334886fd5b55f752b751a4ce3d5f75d9097f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "zipfile2";
  version = "0.0.12-unstable-2024-09-28";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cournape";
    repo = "zipfile2";
    #tag = "v${version}";
    rev = "8823f7253772e5c5811343306a591c00c764c6d0";
    hash = "sha256-jDOyIj0sQS1dIsar4nyk5V2mme3Zc6VTms49/4n93ho=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "zipfile2" ];

  disabledTests = [
    # PermissionError: [Errno 1] Operation not ...
    "test_extract"
  ];

  meta = {
    description = "Backwards-compatible improved zipfile class";
    homepage = "https://github.com/cournape/zipfile2";
    changelog = "https://github.com/itziakos/zipfile2/releases/tag/v${version}";
    license = lib.licenses.psfl;
    maintainers = [ ];
  };
}