From 3e1748f7275aaeee371aeb495f47a27380ef038a Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sat, 9 Dec 2017 14:07:24 +0100 Subject: [PATCH] python.pkgs.xmltodict: 0.9.2 -> 0.11.0 --- .../python-modules/xmltodict/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------- 2 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/xmltodict/default.nix diff --git a/pkgs/development/python-modules/xmltodict/default.nix b/pkgs/development/python-modules/xmltodict/default.nix new file mode 100644 index 000000000000..be1651caf8a4 --- /dev/null +++ b/pkgs/development/python-modules/xmltodict/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, coverage +, nose +}: + +buildPythonPackage rec { + pname = "xmltodict"; + version = "0.11.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "8f8d7d40aa28d83f4109a7e8aa86e67a4df202d9538be40c0cb1d70da527b0df"; + }; + + checkInputs = [ coverage nose ]; + + checkPhase = '' + nosetests + ''; + + meta = { + description = "Makes working with XML feel like you are working with JSON"; + homepage = https://github.com/martinblech/xmltodict; + license = lib.licenses.mit; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1eca6d754a69..d677520468ce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20559,22 +20559,7 @@ EOF }; }); - xmltodict = buildPythonPackage (rec { - name = "xmltodict-0.9.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/x/xmltodict/${name}.tar.gz"; - sha256 = "00crqnjh1kbvcgfnn3b8c7vq30lf4ykkxp1xf3pf7mswr5l1wp97"; - }; - - buildInputs = with self; [ coverage nose ]; - - meta = { - description = "Makes working with XML feel like you are working with JSON"; - homepage = https://github.com/martinblech/xmltodict; - license = licenses.mit; - }; - }); + xmltodict = callPackage ../development/python-modules/xmltodict { }; xarray = callPackage ../development/python-modules/xarray { };