evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / here-transit / default.nix
blob2aae9b51fe53dac45f01e7dfad2eca0308bcc252
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   hatchling,
7   aiohttp,
8   async-timeout,
9   yarl,
10   aresponses,
11   pytest-asyncio,
12   pytestCheckHook,
15 buildPythonPackage rec {
16   pname = "here-transit";
17   version = "1.2.1";
19   disabled = pythonOlder "3.10";
21   pyproject = true;
23   src = fetchFromGitHub {
24     owner = "eifinger";
25     repo = "here_transit";
26     rev = "v${version}";
27     hash = "sha256-fORg1iqRcD75Is1EW9XeAu8astibypmnNXo3vHduQdk=";
28   };
30   postPatch = ''
31     sed -i "/^addopts/d" pyproject.toml
32   '';
34   build-system = [ hatchling ];
36   dependencies = [
37     aiohttp
38     async-timeout
39     yarl
40   ];
42   nativeCheckInputs = [
43     aresponses
44     pytest-asyncio
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [ "here_transit" ];
50   meta = {
51     changelog = "https://github.com/eifinger/here_transit/releases/tag/v${version}";
52     description = "Asynchronous Python client for the HERE Routing V8 API";
53     homepage = "https://github.com/eifinger/here_transit";
54     license = lib.licenses.mit;
55     maintainers = with lib.maintainers; [ dotlambda ];
56   };