From 826649ddf459e35e6fa6e57ae333637977f6b235 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 11 Dec 2016 20:05:52 +0100 Subject: [PATCH] pythonPackages.multidict: init at 2.1.4 --- .../python-modules/multidict/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/multidict/default.nix diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix new file mode 100644 index 000000000000..9a2e13f0c598 --- /dev/null +++ b/pkgs/development/python-modules/multidict/default.nix @@ -0,0 +1,32 @@ +{ lib +, fetchurl +, buildPythonPackage +, pytest +, isPy3k +}: + +let + pname = "multidict"; + version = "2.1.4"; +in buildPythonPackage rec { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "a77aa8c9f68846c3b5db43ff8ed2a7a884dbe845d01f55113a3fba78518c4cd7"; + }; + + buildInputs = [ pytest ]; + + checkPhase = '' + py.test + ''; + + disabled = !isPy3k; + + meta = { + description = "Multidict implementation"; + homepage = https://github.com/aio-libs/multidict/; + license = lib.licenses.asl20; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 928ee522e11c..ba944b668229 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14377,6 +14377,8 @@ in { }; }; + multidict = callPackage ../development/python-modules/multidict { }; + munch = buildPythonPackage rec { name = "munch-${version}"; version = "2.0.4";