57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
aiohttp,
|
|
async-timeout,
|
|
yarl,
|
|
aresponses,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "here-routing";
|
|
version = "1.0.1";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eifinger";
|
|
repo = "here_routing";
|
|
rev = "v${version}";
|
|
hash = "sha256-sdNs5QNYvL1Cpbk9Yi+7PSiDZ6LEgAXQ19IYSAY78p0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/^addopts/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
async-timeout
|
|
yarl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "here_routing" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/eifinger/here_routing/releases/tag/v${version}";
|
|
description = "Asynchronous Python client for the HERE Routing V8 API";
|
|
homepage = "https://github.com/eifinger/here_routing";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|