Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / here-routing / default.nix
blobc1ca069b51d6e1d9b5be7fed2fcff67198b43cbf
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , aiohttp
7 , async-timeout
8 , yarl
9 , aresponses
10 , pytest-asyncio
11 , pytestCheckHook
14 buildPythonPackage rec {
15   pname = "here-routing";
16   version = "1.0.0";
18   disabled = pythonOlder "3.10";
20   format = "pyproject";
22   src = fetchFromGitHub {
23     owner = "eifinger";
24     repo = "here_routing";
25     rev = "v${version}";
26     hash = "sha256-wdjPbM9J+2q3NisdlOHIddSWHHIfwQY/83v6IBAXSq0=";
27   };
29   postPatch = ''
30     sed -i "/^addopts/d" pyproject.toml
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     aiohttp
39     async-timeout
40     yarl
41   ];
43   nativeCheckInputs = [
44     aresponses
45     pytest-asyncio
46     pytestCheckHook
47   ];
49   pythonImportsCheck = [ "here_routing" ];
51   meta = {
52     changelog = "https://github.com/eifinger/here_routing/blob/${src.rev}/CHANGELOG.md";
53     description = "Asynchronous Python client for the HERE Routing V8 API";
54     homepage = "https://github.com/eifinger/here_routing";
55     license = lib.licenses.mit;
56     maintainers = with lib.maintainers; [ dotlambda ];
57   };