Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-aiohttp, 9 pytestCheckHook, 10 pythonOlder, 11 yarl, 12}: 13 14buildPythonPackage rec { 15 pname = "aiohttp-middlewares"; 16 version = "2.4.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "playpauseandstop"; 23 repo = "aiohttp-middlewares"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-jUH1XhkytRwR76wUTsGQGu6m8s+SZ/GO114Lz9atwE8="; 26 }; 27 28 postPatch = '' 29 sed -i "/addopts/d" pyproject.toml 30 ''; 31 32 build-system = [ poetry-core ]; 33 34 dependencies = [ 35 aiohttp 36 async-timeout 37 yarl 38 ]; 39 40 nativeCheckInputs = [ 41 pytest-aiohttp 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "aiohttp_middlewares" ]; 46 47 meta = with lib; { 48 description = "Collection of useful middlewares for aiohttp.web applications"; 49 homepage = "https://github.com/playpauseandstop/aiohttp-middlewares"; 50 changelog = "https://github.com/playpauseandstop/aiohttp-middlewares/blob/${version}/CHANGELOG.rst"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}