depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-fast-url-dispatcher/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

49 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiohttp-fast-url-dispatcher";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohttp-fast-url-dispatcher";
rev = "refs/tags/v${version}";
hash = "sha256-DZTW9CazcUY3hyxr0MbVfM/yJzUzwN43c2n07Sloxa8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiohttp_fast_url_dispatcher --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiohttp_fast_url_dispatcher" ];
meta = with lib; {
description = "Faster URL dispatcher for aiohttp";
homepage = "https://github.com/bdraco/aiohttp-fast-url-dispatcher";
changelog = "https://github.com/bdraco/aiohttp-fast-url-dispatcher/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}