2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pythonAtLeast,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zipfile2";
|
|
|
|
version = "0.0.12";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Backwards-compatible improved zipfile class";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ genericnerdyusername ];
|
|
|
|
license = licenses.psfl;
|
2024-06-05 15:53:02 +00:00
|
|
|
broken = pythonAtLeast "3.12"; # tests are failing because the signature of ZipInfo._decodeExtra changed
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|