python312Packages.pytransportnswv2: refactor

This commit is contained in:
Fabian Affolter 2024-05-18 09:51:42 +02:00
parent cfa2ca888d
commit cfc8c3afcd

View File

@ -1,24 +1,29 @@
{ 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 ];
};
}