nixpkgs/pkgs/development/python-modules/multidict/default.nix

32 lines
599 B
Nix
Raw Normal View History

{ lib
, fetchurl
, buildPythonPackage
, pytest
, isPy3k
}:
let
pname = "multidict";
2017-06-01 17:11:57 +01:00
version = "2.1.6";
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";
};
buildInputs = [ pytest ];
checkPhase = ''
py.test
'';
disabled = !isPy3k;
meta = {
description = "Multidict implementation";
homepage = https://github.com/aio-libs/multidict/;
license = lib.licenses.asl20;
};
}