From c2526182c880a6ad969dd231b6802d418ae09b4b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 14:51:52 -0400 Subject: [PATCH] pythonPackages.suds: refactor move to python-modules --- .../python-modules/suds/default.nix | 29 +++++++++++++++++++ .../{ => suds}/suds-0.4-CVE-2013-2217.patch | 0 pkgs/top-level/python-packages.nix | 22 +------------- 3 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/suds/default.nix rename pkgs/development/python-modules/{ => suds}/suds-0.4-CVE-2013-2217.patch (100%) diff --git a/pkgs/development/python-modules/suds/default.nix b/pkgs/development/python-modules/suds/default.nix new file mode 100644 index 000000000000..c4a8e480ed40 --- /dev/null +++ b/pkgs/development/python-modules/suds/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +}: + +buildPythonPackage rec { + pname = "suds"; + version = "0.4"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1w4s9051iv90c0gs73k80c3d51y2wbx1xgfdgg2hk7mv4gjlllnm"; + }; + + patches = [ ./suds-0.4-CVE-2013-2217.patch ]; + + meta = with stdenv.lib; { + # Broken for security issues: + # - https://github.com/NixOS/nixpkgs/issues/19678 + # - https://lwn.net/Vulnerabilities/559200/ + broken = true; + description = "Lightweight SOAP client"; + homepage = https://fedorahosted.org/suds; + license = licenses.lgpl3Plus; + }; + +} diff --git a/pkgs/development/python-modules/suds-0.4-CVE-2013-2217.patch b/pkgs/development/python-modules/suds/suds-0.4-CVE-2013-2217.patch similarity index 100% rename from pkgs/development/python-modules/suds-0.4-CVE-2013-2217.patch rename to pkgs/development/python-modules/suds/suds-0.4-CVE-2013-2217.patch diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 68df3ed5da05..9250789462d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4463,27 +4463,7 @@ in { pafy = callPackage ../development/python-modules/pafy { }; - suds = buildPythonPackage rec { - name = "suds-0.4"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/suds/suds-0.4.tar.gz"; - sha256 = "1w4s9051iv90c0gs73k80c3d51y2wbx1xgfdgg2hk7mv4gjlllnm"; - }; - - patches = [ ../development/python-modules/suds-0.4-CVE-2013-2217.patch ]; - - meta = with stdenv.lib; { - # Broken for security issues: - # - https://github.com/NixOS/nixpkgs/issues/19678 - # - https://lwn.net/Vulnerabilities/559200/ - broken = true; - description = "Lightweight SOAP client"; - homepage = https://fedorahosted.org/suds; - license = licenses.lgpl3Plus; - }; - }; + suds = callPackage ../development/python-modules/suds { }; suds-jurko = buildPythonPackage rec { name = "suds-jurko-${version}";