Commit cfc8c3af authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pytransportnswv2: refactor

parent cfa2ca88
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, gtfs-realtime-bindings
, pythonOlder
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "pytransportnswv2";
  version = "0.3.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9bpIu+Uc6eFSEGeEfpVwfrhvLekR8qOd571qMnLTpVg=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    gtfs-realtime-bindings
    requests
  ];
@@ -31,7 +36,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python module to access Transport NSW information";
    homepage = "https://github.com/andystewart999/TransportNSW";
    license = with licenses; [ gpl3Only ];
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}