1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4}: 5 6buildPythonPackage rec { 7 pname = "zipfile2"; 8 version = "0.0.12"; 9 10 src = fetchFromGitHub { 11 owner = "cournape"; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-BwcEgW4XrQqz0Jmtbyxf8q0mWTJXv2dL3Tk7N/IYuMI="; 15 }; 16 17 patches = [ ./no-setuid.patch ]; 18 19 pythonImportsCheck = [ "zipfile2" ]; 20 21 meta = with lib; { 22 homepage = "https://github.com/cournape/zipfile2"; 23 description = "A backwards-compatible improved zipfile class"; 24 maintainers = with maintainers; [ genericnerdyusername ]; 25 license = licenses.psfl; 26 }; 27}