From f7732397309f77546df2fda8031f56f98d11916e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 14 Jan 2023 14:59:09 +0100 Subject: [PATCH] python310Packages.aiopvpc: 3.0.0 -> 4.0.1 Diff: https://github.com/azogue/aiopvpc/compare/refs/tags/v3.0.0...v4.0.1 Changelog: https://github.com/azogue/aiopvpc/blob/v4.0.1/CHANGELOG.md --- .../python-modules/aiopvpc/default.nix | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/aiopvpc/default.nix b/pkgs/development/python-modules/aiopvpc/default.nix index 67ff18b14e29..0f44a49a3979 100644 --- a/pkgs/development/python-modules/aiopvpc/default.nix +++ b/pkgs/development/python-modules/aiopvpc/default.nix @@ -4,18 +4,17 @@ , backports-zoneinfo , buildPythonPackage , fetchFromGitHub -, holidays , poetry-core , pytest-asyncio , pytest-timeout , pytestCheckHook , pythonOlder -, tzdata +, python-dotenv }: buildPythonPackage rec { pname = "aiopvpc"; - version = "3.0.0"; + version = "4.0.1"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -24,17 +23,20 @@ buildPythonPackage rec { owner = "azogue"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-eTCQddoZIaCs7iKGNBC8aSq6ek4vwYXgIXx35UlME/k="; + hash = "sha256-E5z74/5VuFuOyAfeT4PQlHUNOiVT4sPgOdxoAIIymxU="; }; + postPatch = '' + substituteInPlace pyproject.toml --replace \ + " --cov --cov-report term --cov-report html" "" + ''; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp - holidays - tzdata async-timeout ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo @@ -44,18 +46,9 @@ buildPythonPackage rec { pytest-asyncio pytest-timeout pytestCheckHook + python-dotenv ]; - disabledTests = [ - # Failures seem related to changes in holidays-0.13, https://github.com/azogue/aiopvpc/issues/44 - "test_number_of_national_holidays" - ]; - - postPatch = '' - substituteInPlace pyproject.toml --replace \ - " --cov --cov-report term --cov-report html" "" - ''; - pythonImportsCheck = [ "aiopvpc" ];