1{ lib
2, fetchPypi
3, buildPythonPackage
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "multidict";
10 version = "6.0.4";
11
12 disabled = pythonOlder "3.7";
13
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-NmaQZJLvt2RTwOe5fyz0WbBoLnQCwEialUhJZdvB2kk=";
19 };
20
21 postPatch = ''
22 sed -i '/^addopts/d' setup.cfg
23 '';
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "multidict" ];
28
29 meta = with lib; {
30 changelog = "https://github.com/aio-libs/multidict/blob/v${version}/CHANGES.rst";
31 description = "Multidict implementation";
32 homepage = "https://github.com/aio-libs/multidict/";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ dotlambda ];
35 };
36}