From 5de3c5d89d8d8229838fd98a8c386da344853367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 5 Oct 2021 23:33:08 -0700 Subject: [PATCH] python3Packages.multidict: improve expression --- pkgs/development/python-modules/multidict/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix index 6a167697f9cd..0ea21ecbe405 100644 --- a/pkgs/development/python-modules/multidict/default.nix +++ b/pkgs/development/python-modules/multidict/default.nix @@ -2,14 +2,14 @@ , fetchPypi , buildPythonPackage , pytestCheckHook -, isPy3k +, pythonOlder }: buildPythonPackage rec { pname = "multidict"; version = "5.2.0"; - disabled = !isPy3k; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; @@ -17,12 +17,13 @@ buildPythonPackage rec { }; postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=multidict --cov-report term-missing:skip-covered --cov-report xml" "" + sed -i '/^addopts/d' setup.cfg ''; checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "multidict" ]; + meta = with lib; { description = "Multidict implementation"; homepage = "https://github.com/aio-libs/multidict/";