Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9 zlib-ng, 10}: 11 12buildPythonPackage rec { 13 pname = "aiohttp-zlib-ng"; 14 version = "0.3.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "bdraco"; 21 repo = "aiohttp-zlib-ng"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-SiDDtadbBnw67lnqadAVSkHILB/8Sur0MfjgCbndX4o="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail " --cov=aiohttp_zlib_ng --cov-report=term-missing:skip-covered" "" 29 ''; 30 31 nativeBuildInputs = [ poetry-core ]; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 zlib-ng 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "aiohttp_zlib_ng" ]; 41 42 meta = with lib; { 43 description = "Enable zlib_ng on aiohttp"; 44 homepage = "https://github.com/bdraco/aiohttp-zlib-ng"; 45 changelog = "https://github.com/bdraco/aiohttp-zlib-ng/blob/${version}/CHANGELOG.md"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}