Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 615 B view raw
1{ lib 2, fetchurl 3, buildPythonPackage 4, pytest 5, isPy3k 6, psutil 7}: 8 9let 10 pname = "multidict"; 11 version = "3.1.3"; 12in buildPythonPackage rec { 13 name = "${pname}-${version}"; 14 15 src = fetchurl { 16 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 17 sha256 = "875f80a046e7799b40df4b015b8fc5dae91697936872a8d7362c909a02ec6d12"; 18 }; 19 20 checkInputs = [ pytest psutil ]; 21 22 checkPhase = '' 23 py.test 24 ''; 25 26 disabled = !isPy3k; 27 28 meta = { 29 description = "Multidict implementation"; 30 homepage = https://github.com/aio-libs/multidict/; 31 license = lib.licenses.asl20; 32 }; 33}