From 5e60de4c9551a9bca925f7bdac02a921de688b1c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Nov 2023 14:52:13 +0100 Subject: [PATCH 1/2] python311Packages.aioopenexchangerates: 0.4.3 -> 0.4.4 Diff: https://github.com/MartinHjelmare/aioopenexchangerates/compare/refs/tags/v0.4.3...v0.4.4 Changelog: https://github.com/MartinHjelmare/aioopenexchangerates/blob/vv0.4.4/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 fda31f1a40aa6..33d02d2456b38 100644 --- a/pkgs/development/python-modules/aioopenexchangerates/default.nix +++ b/pkgs/development/python-modules/aioopenexchangerates/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "aioopenexchangerates"; - version = "0.4.3"; + version = "0.4.4"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "MartinHjelmare"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-C34GjCQdkKOTyHw4XNaXvVqqMfKv9KlZjdKfDFsOSOE="; + hash = "sha256-Wts2qVTZFTLR2Ru3bSiobGOyegiNoGl3xOrZdDRh7iU="; }; nativeBuildInputs = [ From 2125339fec061101f220c67bbebe068e0836c36b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Nov 2023 15:08:18 +0100 Subject: [PATCH 2/2] python311Packages.aioopenexchangerates: modernize --- .../aioopenexchangerates/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/aioopenexchangerates/default.nix b/pkgs/development/python-modules/aioopenexchangerates/default.nix index 33d02d2456b38..84019037d5269 100644 --- a/pkgs/development/python-modules/aioopenexchangerates/default.nix +++ b/pkgs/development/python-modules/aioopenexchangerates/default.nix @@ -13,17 +13,22 @@ buildPythonPackage rec { pname = "aioopenexchangerates"; version = "0.4.4"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "MartinHjelmare"; - repo = pname; + repo = "aioopenexchangerates"; rev = "refs/tags/v${version}"; hash = "sha256-Wts2qVTZFTLR2Ru3bSiobGOyegiNoGl3xOrZdDRh7iU="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" + ''; + nativeBuildInputs = [ poetry-core ]; @@ -39,11 +44,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" - ''; - pythonImportsCheck = [ "aioopenexchangerates" ]; @@ -51,7 +51,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for the Openexchangerates API"; homepage = "https://github.com/MartinHjelmare/aioopenexchangerates"; - changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/vv${version}/CHANGELOG.md"; + changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/v${version}/CHANGELOG.md"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };