about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/multidict/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/multidict/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/multidict/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/multidict/default.nix b/nixpkgs/pkgs/development/python-modules/multidict/default.nix
new file mode 100644
index 000000000000..0ea21ecbe405
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/multidict/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, fetchPypi
+, buildPythonPackage
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "multidict";
+  version = "5.2.0";
+
+  disabled = pythonOlder "3.6";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0dd1c93edb444b33ba2274b66f63def8a327d607c6c790772f448a53b6ea59ce";
+  };
+
+  postPatch = ''
+    sed -i '/^addopts/d' setup.cfg
+  '';
+
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "multidict" ];
+
+  meta = with lib; {
+    description = "Multidict implementation";
+    homepage = "https://github.com/aio-libs/multidict/";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}