2016-12-11 19:05:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytest
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "multidict";
|
2017-06-01 17:11:57 +01:00
|
|
|
version = "2.1.6";
|
2016-12-11 19:05:52 +00:00
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
2017-06-01 17:11:57 +01:00
|
|
|
sha256 = "9ec33a1da4d2096949e29ddd66a352aae57fad6b5483087d54566a2f6345ae10";
|
2016-12-11 19:05:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Multidict implementation";
|
|
|
|
homepage = https://github.com/aio-libs/multidict/;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|