diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix new file mode 100644 index 00000000000..9a2e13f0c59 --- /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 928ee522e11..ba944b66822 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";