Skip to content

Commit ff25ec9

Browse files
authored
python3Packages.py-nextbusnext: 2.2.0 -> 2.3.0 (#416578)
2 parents 2f74f4c + f849fba commit ff25ec9

File tree

1 file changed

+12
-7
lines changed
  • pkgs/development/python-modules/py-nextbusnext

1 file changed

+12
-7
lines changed

pkgs/development/python-modules/py-nextbusnext/default.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
pythonOlder,
5+
pytestCheckHook,
66
requests,
77
setuptools,
88
}:
99

1010
buildPythonPackage rec {
1111
pname = "py-nextbusnext";
12-
version = "2.2.0";
12+
version = "2.3.0";
1313
pyproject = true;
1414

15-
disabled = pythonOlder "3.9";
16-
1715
src = fetchFromGitHub {
1816
owner = "ViViDboarder";
1917
repo = "py_nextbus";
2018
tag = "v${version}";
21-
hash = "sha256-UA5/OjmgWU9vd9NGjH2qUUELsOpFayEVaO7hB91yQ74=";
19+
hash = "sha256-zTOP2wj1ZseXYbWGNgehIkgZQkV4u74yjI0mhn35e4E=";
2220
};
2321

2422
build-system = [ setuptools ];
@@ -27,10 +25,17 @@ buildPythonPackage rec {
2725

2826
pythonImportsCheck = [ "py_nextbus" ];
2927

30-
# upstream has no tests
31-
doCheck = false;
28+
nativeCheckInputs = [
29+
pytestCheckHook
30+
];
31+
32+
disabledTestPaths = [
33+
# tests access the internet
34+
"acceptance/client_test.py"
35+
];
3236

3337
meta = with lib; {
38+
changelog = "https://github.com/ViViDboarder/py_nextbusnext/releases/tag/${src.tag}";
3439
description = "Minimalistic Python client for the NextBus public API";
3540
homepage = "https://github.com/ViViDboarder/py_nextbus";
3641
license = licenses.mit;

0 commit comments

Comments
 (0)