forked from mirrors/nixpkgs
python3Packages.envoy-reader: 0.20.0 -> 0.21.3
This commit is contained in:
parent
4aa14a8cdd
commit
b5eee3acc8
1 changed files with 12 additions and 13 deletions
|
@ -1,30 +1,37 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, beautifulsoup4
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, envoy-utils
|
, envoy-utils
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, httpx
|
, httpx
|
||||||
|
, pyjwt
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-raises
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pytest-raises
|
||||||
|
, pythonOlder
|
||||||
, respx
|
, respx
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "envoy-reader";
|
pname = "envoy-reader";
|
||||||
version = "0.20.0";
|
version = "0.21.3";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jesserizzo";
|
owner = "jesserizzo";
|
||||||
repo = "envoy_reader";
|
repo = "envoy_reader";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-nPB1Fvb1qwLHeFkXP2jXixD2ZGA09MtS1qXRhYGt0fM=";
|
sha256 = "sha256-aIpZ4ln4L57HwK8H0FqsyNnXosnAp3ingrJI6/MPS90=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
beautifulsoup4
|
||||||
envoy-utils
|
envoy-utils
|
||||||
httpx
|
httpx
|
||||||
|
pyjwt
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
@ -36,18 +43,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
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 = [
|
pythonImportsCheck = [
|
||||||
"envoy_reader"
|
"envoy_reader"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue