From 0d9ec5106270e3596f6fd93fa87d4d42c1598f42 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Oct 2024 00:37:22 +0200 Subject: [PATCH] python312Packages.swisshydrodata: 0.1.0 -> 0.2.1 Diff: https://github.com/Bouni/swisshydrodata/compare/refs/tags/0.1.0...0.2.1 Changelog: https://github.com/Bouni/swisshydrodata/releases/tag/0.2.1 --- .../python-modules/swisshydrodata/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/swisshydrodata/default.nix b/pkgs/development/python-modules/swisshydrodata/default.nix index 24048a199746..c1c9bb698d47 100644 --- a/pkgs/development/python-modules/swisshydrodata/default.nix +++ b/pkgs/development/python-modules/swisshydrodata/default.nix @@ -3,23 +3,29 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, - requests, + pythonOlder, requests-mock, + requests, + setuptools, }: buildPythonPackage rec { pname = "swisshydrodata"; - version = "0.1.0"; - format = "setuptools"; + version = "0.2.1"; + pyproject = true; + + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "Bouni"; - repo = pname; - rev = version; - sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak"; + repo = "swisshydrodata"; + rev = "refs/tags/${version}"; + hash = "sha256-RcVwo61HZ02JEOHsSY/W8j2OTBN25oR2JunLZ5i6yVI="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; + + dependencies = [ requests ]; nativeCheckInputs = [ pytestCheckHook @@ -31,7 +37,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python client to get data from the Swiss federal Office for Environment FEON"; homepage = "https://github.com/bouni/swisshydrodata"; - license = with licenses; [ mit ]; + changelog = "https://github.com/Bouni/swisshydrodata/releases/tag/${version}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }