Unverified Commit bd04993b authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

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

python312Packages.py-nextbusnext: 1.0.2 -> 2.0.3
parents d43f0636 cb6ea472
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -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";