depot/third_party/nixpkgs/pkgs/development/python-modules/zipfile2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
755 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pythonAtLeast,
}:
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 = "Backwards-compatible improved zipfile class";
maintainers = with maintainers; [ genericnerdyusername ];
license = licenses.psfl;
broken = pythonAtLeast "3.12"; # tests are failing because the signature of ZipInfo._decodeExtra changed
};
}