python3Packages.py-nextbusnext: 2.2.0 -> 2.3.0

Diff: https://github.com/ViViDboarder/py_nextbus/compare/refs/tags/v2.2.0...refs/tags/v2.3.0

Changelog: https://github.com/ViViDboarder/py_nextbusnext/releases/tag/v2.3.0

Changed files
+12 -7
pkgs
development
python-modules
py-nextbusnext
+12 -7
pkgs/development/python-modules/py-nextbusnext/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
-
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "py-nextbusnext";
-
version = "2.2.0";
pyproject = true;
-
disabled = pythonOlder "3.9";
-
src = fetchFromGitHub {
owner = "ViViDboarder";
repo = "py_nextbus";
tag = "v${version}";
-
hash = "sha256-UA5/OjmgWU9vd9NGjH2qUUELsOpFayEVaO7hB91yQ74=";
};
build-system = [ setuptools ];
···
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";
license = licenses.mit;
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "py-nextbusnext";
+
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ViViDboarder";
repo = "py_nextbus";
tag = "v${version}";
+
hash = "sha256-zTOP2wj1ZseXYbWGNgehIkgZQkV4u74yjI0mhn35e4E=";
};
build-system = [ setuptools ];
···
pythonImportsCheck = [ "py_nextbus" ];
+
nativeCheckInputs = [
+
pytestCheckHook
+
];
+
+
disabledTestPaths = [
+
# tests access the internet
+
"acceptance/client_test.py"
+
];
meta = with lib; {
+
changelog = "https://github.com/ViViDboarder/py_nextbusnext/releases/tag/${src.tag}";
description = "Minimalistic Python client for the NextBus public API";
homepage = "https://github.com/ViViDboarder/py_nextbus";
license = licenses.mit;