python3Packages.pyflume: remove obsolete patch sections

This commit is contained in:
Fabian Affolter 2021-08-25 13:53:19 +02:00
parent 098ca1a9aa
commit 22ca563072

View File

@ -22,13 +22,6 @@ buildPythonPackage rec {
sha256 = "129sz33a270v120bzl9l98nmvdzn7ns4cf9w2v18lmzlldbyz2vn";
};
prePatch = ''
substituteInPlace setup.py --replace 'pyjwt==2.0.1' 'pyjwt>=2.0.1'
substituteInPlace setup.py --replace 'ratelimit==2.2.1' 'ratelimit>=2.2.1'
substituteInPlace setup.py --replace 'pytz==2019.2' 'pytz>=2019.2'
substituteInPlace setup.py --replace 'requests==2.24.0' 'requests>=2.24.0'
'';
propagatedBuildInputs = [
pyjwt
ratelimit
@ -41,15 +34,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# https://github.com/ChrisMandich/PyFlume/issues/18
substituteInPlace setup.py \
--replace "pyjwt==2.0.1" "pyjwt>=2.0.1" \
--replace "ratelimit==2.2.1" "ratelimit>=2.2.1" \
--replace "pytz==2019.2" "pytz>=2019.2" \
--replace "requests==2.24.0" "requests>=2.24.0"
'';
pythonImportsCheck = [ "pyflume" ];
meta = with lib; {