From cfc8c3afcde9e34ca31dfef9a24a116026f30c81 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 18 May 2024 09:51:42 +0200 Subject: [PATCH] python312Packages.pytransportnswv2: refactor --- .../python-modules/pytransportnswv2/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pytransportnswv2/default.nix b/pkgs/development/python-modules/pytransportnswv2/default.nix index b211c271ce20..6d3e6d8a59ec 100644 --- a/pkgs/development/python-modules/pytransportnswv2/default.nix +++ b/pkgs/development/python-modules/pytransportnswv2/default.nix @@ -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 ]; }; }