Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pysimplesoap / default.nix
blobd02761a1c9220b6f5aef0e3c38e137f4571bdff5
1 { lib
2 , fetchDebianPatch
3 , fetchPypi
4 , buildPythonPackage
5 , m2crypto
6 , nix-update-script
7 }:
9 buildPythonPackage rec {
10   pname = "pysimplesoap";
11   version = "1.16.2";
12   format = "setuptools";
14   passthru.updateScript = nix-update-script { };
16   src = fetchPypi {
17     pname = "PySimpleSOAP";
18     inherit version;
19     hash = "sha256-sbv00NCt/5tlIZfWGqG3ZzGtYYhJ4n0o/lyyUJFtZ+E=";
20   };
22   propagatedBuildInputs = [
23     m2crypto
24   ];
26   # Patches necessary for Python 3 compatibility plus bugfixes
27   patches = map (args: fetchDebianPatch ({
28     inherit pname version;
29     debianRevision = "5";
30   } // args)) [
31     # Merged upstream: f5f96210e1483f81cb5c582a6619e3ec4b473027
32     { patch = "Add-quotes-to-SOAPAction-header-in-SoapClient.patch";
33       hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0="; }
34     # Merged upstream: ad03a21cafab982eed321553c4bfcda1755182eb
35     { patch = "fix-httplib2-version-check.patch";
36       hash = "sha256-zUeF3v0N/eMyRVRH3tQLfuUfMKOD/B/aqEwFh/7HxH4="; }
37     { patch = "reorder-type-check-to-avoid-a-TypeError.patch";
38       hash = "sha256-2p5Cqvh0SPfJ8B38wb/xq7jWGYgpI9pavA6qkMUb6hA="; }
39     # Merged upstream: 033e5899e131a2c1bdf7db5852f816f42aac9227
40     { patch = "Support-integer-values-in-maxOccurs-attribute.patch";
41       hash = "sha256-IZ0DP7io+ihcnB5547cR53FAdnpRLR6z4J5KsNrkfaI="; }
42     { patch = "PR204.patch";
43       hash = "sha256-JlxeTnKDFxvEMFBthZsaYRbNOoBvLJhBnXCRoiL/nVw="; }
44   ] ++ [ ./stringIO.patch ];
46   meta = with lib; {
47     description = "Python simple and lightweight SOAP Library";
48     homepage = "https://github.com/pysimplesoap/pysimplesoap";
49     license = licenses.lgpl3Plus;
51     # I don't directly use this, only needed it as a dependency of debianbts
52     #  so co-maintainers would be welcome.
53     maintainers = [ maintainers.nicoo ];
54   };