diff --git a/pkgs/development/python-modules/pyrainbird/default.nix b/pkgs/development/python-modules/pyrainbird/default.nix index 74f0ed630a26..5035f7c1a369 100644 --- a/pkgs/development/python-modules/pyrainbird/default.nix +++ b/pkgs/development/python-modules/pyrainbird/default.nix @@ -7,44 +7,42 @@ , pythonOlder , pyyaml , requests +, requests-mock , responses -, setuptools }: buildPythonPackage rec { pname = "pyrainbird"; - version = "0.4.3"; + version = "0.6.2"; format = "setuptools"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "jbarrancos"; repo = pname; rev = version; - hash = "sha256-uRHknWvoPKPu3B5MbSEUlWqBKwAbNMwsgXuf6PZxhkU="; + hash = "sha256-MikJDW5Fo2DNpn9/Hyc1ecIIMEwE8GD5LKpka2t7aCk="; }; + postPatch = '' + substituteInPlace pytest.ini \ + --replace "--cov=pyrainbird --cov-report=term-missing" "" + ''; + propagatedBuildInputs = [ pycryptodome pyyaml requests - setuptools ]; checkInputs = [ - pytestCheckHook parameterized + pytestCheckHook + requests-mock responses ]; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "datetime" "" - substituteInPlace pytest.ini \ - --replace "--cov=pyrainbird --cov-report=term-missing --pep8 --flakes --mccabe" "" - ''; - pythonImportsCheck = [ "pyrainbird" ];