Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 pythonAtLeast, 6}: 7 8buildPythonPackage rec { 9 pname = "zipfile2"; 10 version = "0.0.12"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "cournape"; 15 repo = pname; 16 rev = "v${version}"; 17 hash = "sha256-BwcEgW4XrQqz0Jmtbyxf8q0mWTJXv2dL3Tk7N/IYuMI="; 18 }; 19 20 patches = [ ./no-setuid.patch ]; 21 22 pythonImportsCheck = [ "zipfile2" ]; 23 24 meta = with lib; { 25 homepage = "https://github.com/cournape/zipfile2"; 26 description = "Backwards-compatible improved zipfile class"; 27 maintainers = with maintainers; [ genericnerdyusername ]; 28 license = licenses.psfl; 29 broken = pythonAtLeast "3.12"; # tests are failing because the signature of ZipInfo._decodeExtra changed 30 }; 31}