2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
hatchling,
|
2024-06-05 15:53:02 +00:00
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
yarl,
|
|
|
|
aresponses,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "here-transit";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.1";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eifinger";
|
|
|
|
repo = "here_transit";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-fORg1iqRcD75Is1EW9XeAu8astibypmnNXo3vHduQdk=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/^addopts/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ hatchling ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "here_transit" ];
|
|
|
|
|
|
|
|
meta = {
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/eifinger/here_transit/releases/tag/v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Asynchronous Python client for the HERE Routing V8 API";
|
|
|
|
homepage = "https://github.com/eifinger/here_transit";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|