From 86b2794824b636d1bc87d0fa6a98ce6629fd1f85 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 8 Oct 2024 23:51:33 +0000 Subject: [PATCH 1/2] python312Packages.auroranoaa: 0.0.3 -> 0.0.5 --- pkgs/development/python-modules/auroranoaa/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/auroranoaa/default.nix b/pkgs/development/python-modules/auroranoaa/default.nix index 82820fc05f33d..b76ca9fef475a 100644 --- a/pkgs/development/python-modules/auroranoaa/default.nix +++ b/pkgs/development/python-modules/auroranoaa/default.nix @@ -8,15 +8,15 @@ buildPythonPackage rec { pname = "auroranoaa"; - version = "0.0.3"; + version = "0.0.5"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "djtimca"; repo = "aurora-api"; - rev = version; - hash = "sha256-ho0O5aEHCKaTuWh2eW2kY5a7dVGIGBLm4nKxAMq0bZ4="; + rev = "refs/tags/${version}"; + hash = "sha256-bQDFSbYFsGtvPuJNMykynOpBTIeloUoCVRtIuHXR4n0="; }; propagatedBuildInputs = [ aiohttp ]; From d817131b089efbe557c8321b0643218eb5db9cf8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 9 Oct 2024 10:20:28 +0200 Subject: [PATCH 2/2] python312Packages.auroranoaa: refactor --- .../python-modules/auroranoaa/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/auroranoaa/default.nix b/pkgs/development/python-modules/auroranoaa/default.nix index b76ca9fef475a..8dcec269dced2 100644 --- a/pkgs/development/python-modules/auroranoaa/default.nix +++ b/pkgs/development/python-modules/auroranoaa/default.nix @@ -4,12 +4,14 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "auroranoaa"; version = "0.0.5"; - format = "setuptools"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { @@ -19,16 +21,20 @@ buildPythonPackage rec { hash = "sha256-bQDFSbYFsGtvPuJNMykynOpBTIeloUoCVRtIuHXR4n0="; }; - propagatedBuildInputs = [ aiohttp ]; + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; # Project has no tests doCheck = false; + pythonImportsCheck = [ "auroranoaa" ]; meta = with lib; { description = "Python wrapper for the Aurora API"; homepage = "https://github.com/djtimca/aurora-api"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/djtimca/aurora-api/releases/tag/${version}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }