Merge pull request #201071 from fabaff/pyrainbird-bump

python310Packages.pyrainbird: 0.4.3 -> 0.6.2
This commit is contained in:
Fabian Affolter
2022-11-14 13:21:13 +01:00
committed by GitHub
@@ -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"
];