2016-12-11 19:05:52 +00:00
|
|
|
{ lib
|
2018-01-22 15:08:37 +00:00
|
|
|
, fetchPypi
|
2016-12-11 19:05:52 +00:00
|
|
|
, buildPythonPackage
|
2021-10-08 23:23:10 +01:00
|
|
|
, pytestCheckHook
|
2021-10-06 07:33:08 +01:00
|
|
|
, pythonOlder
|
2016-12-11 19:05:52 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-28 13:08:30 +00:00
|
|
|
buildPythonPackage rec {
|
2016-12-11 19:05:52 +00:00
|
|
|
pname = "multidict";
|
2022-03-02 21:42:06 +00:00
|
|
|
version = "6.0.2";
|
2021-10-08 23:23:10 +01:00
|
|
|
|
2021-10-06 07:33:08 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2016-12-11 19:05:52 +00:00
|
|
|
|
2018-01-22 15:08:37 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-02 21:42:06 +00:00
|
|
|
sha256 = "sha256-X/O9dfOOTEPx9HDy33pNQwuCHEziK+OE4UWctX1rsBM=";
|
2016-12-11 19:05:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-08 23:23:10 +01:00
|
|
|
postPatch = ''
|
2021-10-06 07:33:08 +01:00
|
|
|
sed -i '/^addopts/d' setup.cfg
|
2021-10-08 23:23:10 +01:00
|
|
|
'';
|
2016-12-11 19:05:52 +00:00
|
|
|
|
2021-10-08 23:23:10 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2016-12-11 19:05:52 +00:00
|
|
|
|
2021-10-06 07:33:08 +01:00
|
|
|
pythonImportsCheck = [ "multidict" ];
|
|
|
|
|
2018-01-28 13:08:30 +00:00
|
|
|
meta = with lib; {
|
2016-12-11 19:05:52 +00:00
|
|
|
description = "Multidict implementation";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aio-libs/multidict/";
|
2018-01-28 13:08:30 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2016-12-11 19:05:52 +00:00
|
|
|
};
|
2017-10-31 15:21:13 +00:00
|
|
|
}
|