Merge pull request #328405 from dotlambda/python3Packages.py-nextbusnext

python312Packages.py-nextbusnext: 1.0.2 -> 2.0.3
This commit is contained in:
Nick Cao 2024-07-20 13:57:02 -04:00 committed by GitHub
commit bd04993bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,31 +2,34 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "py-nextbusnext";
version = "1.0.2";
version = "2.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "ViViDboarder";
repo = "py_nextbus";
rev = "refs/tags/v${version}";
hash = "sha256-5zD8AKb4/4x4cVA922OlzSOXlg3F6QCcr16agEQkUWM=";
hash = "sha256-dSBjOMqryEddWB54AddGDojRE8/STi3kxfjJsVFBuOw=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
dependencies = [ requests ];
pythonImportsCheck = [ "py_nextbus" ];
# upstream has no tests
doCheck = false;
meta = with lib; {
description = "Minimalistic Python client for the NextBus public API";
homepage = "https://github.com/ViViDboarder/py_nextbus";