3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.envoy-reader: 0.20.0 -> 0.21.3

This commit is contained in:
Fabian Affolter 2022-01-25 18:24:37 +01:00 committed by Jonathan Ringer
parent 4aa14a8cdd
commit b5eee3acc8

View file

@ -1,30 +1,37 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, envoy-utils
, fetchFromGitHub
, fetchpatch
, httpx
, pyjwt
, pytest-asyncio
, pytest-raises
, pytestCheckHook
, pytest-raises
, pythonOlder
, respx
}:
buildPythonPackage rec {
pname = "envoy-reader";
version = "0.20.0";
version = "0.21.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jesserizzo";
repo = "envoy_reader";
rev = version;
sha256 = "sha256-nPB1Fvb1qwLHeFkXP2jXixD2ZGA09MtS1qXRhYGt0fM=";
sha256 = "sha256-aIpZ4ln4L57HwK8H0FqsyNnXosnAp3ingrJI6/MPS90=";
};
propagatedBuildInputs = [
beautifulsoup4
envoy-utils
httpx
pyjwt
];
checkInputs = [
@ -36,18 +43,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner>=5.2" ""
--replace "pytest-runner>=5.2" "" \
--replace "pyjwt==2.1.0" "pyjwt>=2.1.0"
'';
patches = [
# Support for later httpx, https://github.com/jesserizzo/envoy_reader/pull/82
(fetchpatch {
name = "support-later-httpx.patch";
url = "https://github.com/jesserizzo/envoy_reader/commit/6019a89419fe9c830ba839be7d39ec54725268b0.patch";
sha256 = "17vsrx13rskvh8swvjisb2dk6x1jdbjcm8ikkpidia35pa24h272";
})
];
pythonImportsCheck = [
"envoy_reader"
];