From ef46c920b58a2615350f1975940ec96d9c53f78c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 01:29:18 +0200 Subject: [PATCH 1/3] python312Packages.aioopenexchangerates: 0.4.8 -> 0.4.9 Diff: https://github.com/MartinHjelmare/aioopenexchangerates/compare/refs/tags/v0.4.8...v0.4.9 Changelog: https://github.com/MartinHjelmare/aioopenexchangerates/blob/v0.4.9/CHANGELOG.md --- .../python-modules/aioopenexchangerates/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioopenexchangerates/default.nix b/pkgs/development/python-modules/aioopenexchangerates/default.nix index 668274ff85df..ecd6c5982537 100644 --- a/pkgs/development/python-modules/aioopenexchangerates/default.nix +++ b/pkgs/development/python-modules/aioopenexchangerates/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "aioopenexchangerates"; - version = "0.4.8"; + version = "0.4.9"; pyproject = true; disabled = pythonOlder "3.9"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "MartinHjelmare"; repo = "aioopenexchangerates"; rev = "refs/tags/v${version}"; - hash = "sha256-qwqhbHp4JPsbA6g7SI2frtqhayCmA1s3pTW2S4r6gmw="; + hash = "sha256-goOzp5nPkQCtGV7U71ek1LQ93Ko5BdEvawYb/feGRQQ="; }; postPatch = '' From 775475671f508e2aa17c5e2f0d56be5bba0bbb24 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 01:30:50 +0200 Subject: [PATCH 2/3] python312Packages.aioopenexchangerates: refactor --- .../aioopenexchangerates/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aioopenexchangerates/default.nix b/pkgs/development/python-modules/aioopenexchangerates/default.nix index ecd6c5982537..54803ccfd8cd 100644 --- a/pkgs/development/python-modules/aioopenexchangerates/default.nix +++ b/pkgs/development/python-modules/aioopenexchangerates/default.nix @@ -27,19 +27,22 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" + --replace-fail " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ "pydantic" ]; - propagatedBuildInputs = [ + build-system = [ + poetry-core + ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + dependencies = [ aiohttp pydantic ]; From b7ce74df557a6119594f96192f161687320999f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 01:31:40 +0200 Subject: [PATCH 3/3] python312Packages.aioopenexchangerates: use nixfmt --- .../aioopenexchangerates/default.nix | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/aioopenexchangerates/default.nix b/pkgs/development/python-modules/aioopenexchangerates/default.nix index 54803ccfd8cd..34948ce7b78d 100644 --- a/pkgs/development/python-modules/aioopenexchangerates/default.nix +++ b/pkgs/development/python-modules/aioopenexchangerates/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, pydantic -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + aiohttp, + aioresponses, + pydantic, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -30,17 +31,11 @@ buildPythonPackage rec { --replace-fail " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" ''; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ aiohttp @@ -53,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioopenexchangerates" - ]; + pythonImportsCheck = [ "aioopenexchangerates" ]; meta = with lib; { description = "Library for the Openexchangerates API";