mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
python3Packages.envoy-reader: 0.20.0 -> 0.21.3
This commit is contained in:
parent
4aa14a8cdd
commit
b5eee3acc8
@ -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"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user