mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
5ceac78a19
Diff: https://github.com/eifinger/here_routing/compare/v1.0.0...v1.0.1 Changelog: https://github.com/eifinger/here_routing/releases/tag/v1.0.1
58 lines
1.1 KiB
Nix
58 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 ];
|
|
};
|
|
}
|