about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zipfile2/default.nix
blob: 304696ae117a8017c76d5660a3a4c422876fb754 (plain) (blame)
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
{ buildPythonPackage
, fetchFromGitHub
, lib
}:

buildPythonPackage rec {
  pname = "zipfile2";
  version = "0.0.12";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "cournape";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-BwcEgW4XrQqz0Jmtbyxf8q0mWTJXv2dL3Tk7N/IYuMI=";
  };

  patches = [ ./no-setuid.patch ];

  pythonImportsCheck = [ "zipfile2" ];

  meta = with lib; {
    homepage = "https://github.com/cournape/zipfile2";
    description = "A backwards-compatible improved zipfile class";
    maintainers = with maintainers; [ genericnerdyusername ];
    license = licenses.psfl;
  };
}