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

31 lines
642 B
Nix
Raw Normal View History

{ lib
, fetchurl
, buildPythonPackage
, cython
, pytest, psutil, pytestrunner
, isPy3k
}:
let
pname = "multidict";
2017-10-25 20:04:35 +02:00
version = "3.3.0";
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
2017-10-25 20:04:35 +02:00
sha256 = "e76909da2fad6966281d4e0e4ccfd3c3025699ebcc30806afa09fa1384c3532b";
};
buildInputs = [ cython ];
checkInputs = [ pytest psutil pytestrunner ];
disabled = !isPy3k;
meta = {
description = "Multidict implementation";
homepage = https://github.com/aio-libs/multidict/;
license = lib.licenses.asl20;
};
}