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" ];