2022-05-07 07:34:12 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2023-09-29 09:43:41 +02:00
|
|
|
pythonOlder,
|
2024-07-19 04:15:08 -07:00
|
|
|
requests,
|
2023-11-04 20:08:12 +01:00
|
|
|
setuptools,
|
2022-05-07 07:34:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-nextbusnext";
|
2024-07-19 04:15:08 -07:00
|
|
|
version = "2.0.3";
|
2023-11-04 20:08:12 +01:00
|
|
|
pyproject = true;
|
2022-05-07 07:34:12 +00:00
|
|
|
|
2024-07-19 04:15:08 -07:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-09-29 09:43:41 +02:00
|
|
|
|
2022-05-07 07:34:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ViViDboarder";
|
|
|
|
repo = "py_nextbus";
|
2023-09-29 09:43:41 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-19 04:15:08 -07:00
|
|
|
hash = "sha256-dSBjOMqryEddWB54AddGDojRE8/STi3kxfjJsVFBuOw=";
|
2022-05-07 07:34:12 +00:00
|
|
|
};
|
|
|
|
|
2024-07-19 04:15:08 -07:00
|
|
|
build-system = [ setuptools ];
|
2023-11-04 20:08:12 +01:00
|
|
|
|
2024-07-19 04:15:08 -07:00
|
|
|
dependencies = [ requests ];
|
2022-05-07 07:34:12 +00:00
|
|
|
|
2023-09-29 09:43:41 +02:00
|
|
|
pythonImportsCheck = [ "py_nextbus" ];
|
2022-05-07 07:34:12 +00:00
|
|
|
|
2024-07-19 04:15:08 -07:00
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-09-29 09:43:41 +02:00
|
|
|
meta = with lib; {
|
2022-05-07 07:34:12 +00:00
|
|
|
description = "Minimalistic Python client for the NextBus public API";
|
|
|
|
homepage = "https://github.com/ViViDboarder/py_nextbus";
|
2023-09-29 09:43:41 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-05-07 07:34:12 +00:00
|
|
|
};
|
|
|
|
}
|