From cb95e89fb8b5cd16b1ddf2a0ce0ef0142606f2a2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 11 Apr 2024 17:47:53 +0000 Subject: [PATCH 1/4] python312Packages.asf-search: 7.0.8 -> 7.0.9 --- pkgs/development/python-modules/asf-search/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asf-search/default.nix b/pkgs/development/python-modules/asf-search/default.nix index cffe2c064622..79ad5b7291b9 100644 --- a/pkgs/development/python-modules/asf-search/default.nix +++ b/pkgs/development/python-modules/asf-search/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "asf-search"; - version = "7.0.8"; + version = "7.0.9"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "asfadmin"; repo = "Discovery-asf_search"; rev = "refs/tags/v${version}"; - hash = "sha256-wmTt6JFuigpFo/0s9DmKfAZT0dPPyoNeVRlh8vz/jkY="; + hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24="; }; propagatedBuildInputs = [ From 8db206c6ebebcf3c615e1042ca5b31089c7d44a8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 23:29:59 +0200 Subject: [PATCH 2/4] python312Packages.asf-search: refactor --- .../development/python-modules/asf-search/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/asf-search/default.nix b/pkgs/development/python-modules/asf-search/default.nix index 79ad5b7291b9..2c23f3ed63c1 100644 --- a/pkgs/development/python-modules/asf-search/default.nix +++ b/pkgs/development/python-modules/asf-search/default.nix @@ -12,6 +12,7 @@ , remotezip , requests , requests-mock +, setuptools , shapely , tenacity }: @@ -19,7 +20,7 @@ buildPythonPackage rec { pname = "asf-search"; version = "7.0.9"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -30,7 +31,11 @@ buildPythonPackage rec { hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ dateparser importlib-metadata numpy @@ -53,9 +58,9 @@ buildPythonPackage rec { ]; meta = with lib; { - changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.rev}/CHANGELOG.md"; description = "Python wrapper for the ASF SearchAPI"; homepage = "https://github.com/asfadmin/Discovery-asf_search"; + changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${version}/CHANGELOG.md"; license = licenses.bsd3; maintainers = with maintainers; [ bzizou ]; }; From ad5b7186b0664712373a34134199eabffa4defbd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 23:30:20 +0200 Subject: [PATCH 3/4] python312Packages.asf-search: format with nixfmt --- .../python-modules/asf-search/default.nix | 43 +++++++++---------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/asf-search/default.nix b/pkgs/development/python-modules/asf-search/default.nix index 2c23f3ed63c1..647b62bbea74 100644 --- a/pkgs/development/python-modules/asf-search/default.nix +++ b/pkgs/development/python-modules/asf-search/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, dateparser -, defusedxml -, fetchFromGitHub -, importlib-metadata -, numpy -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, remotezip -, requests -, requests-mock -, setuptools -, shapely -, tenacity +{ + lib, + buildPythonPackage, + dateparser, + defusedxml, + fetchFromGitHub, + importlib-metadata, + numpy, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + remotezip, + requests, + requests-mock, + setuptools, + shapely, + tenacity, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ dateparser @@ -53,9 +52,7 @@ buildPythonPackage rec { tenacity ]; - pythonImportsCheck = [ - "asf_search" - ]; + pythonImportsCheck = [ "asf_search" ]; meta = with lib; { description = "Python wrapper for the ASF SearchAPI"; From f475ccc012d7650eb2716fc408d35d5623dea2d9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Apr 2024 09:08:16 +0200 Subject: [PATCH 4/4] python312Packages.asf-search: relax tenacity --- .../development/python-modules/asf-search/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/asf-search/default.nix b/pkgs/development/python-modules/asf-search/default.nix index 647b62bbea74..f4e06bb8af8d 100644 --- a/pkgs/development/python-modules/asf-search/default.nix +++ b/pkgs/development/python-modules/asf-search/default.nix @@ -9,11 +9,12 @@ pytestCheckHook, python-dateutil, pythonOlder, + pythonRelaxDepsHook, pytz, remotezip, - requests, requests-mock, - setuptools, + requests, + setuptools-scm, shapely, tenacity, }: @@ -32,7 +33,11 @@ buildPythonPackage rec { hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24="; }; - build-system = [ setuptools ]; + pythonRelaxDeps = [ "tenacity" ]; + + build-system = [ setuptools-scm ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ dateparser