python3Packages.pyrmvtransport: support for later pytest-httpx

This commit is contained in:
Fabian Affolter 2022-01-10 20:45:35 +01:00
parent c93fe3d0dc
commit 55d6c2cdb6
2 changed files with 13 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, httpx
, protobuf
, pytest-asyncio
@ -38,7 +39,6 @@ buildPythonPackage rec {
zeroconf
];
checkInputs = [
pytest-asyncio
pytest-httpx
@ -46,6 +46,8 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [
"devolo_plc_api"
];

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, flit
, async-timeout
@ -41,6 +42,15 @@ buildPythonPackage rec {
pytest-httpx
];
patches = [
# Can be removed with next release, https://github.com/cgtobi/PyRMVtransport/pull/55
(fetchpatch {
name = "update-tests.patch";
url = "https://github.com/cgtobi/PyRMVtransport/commit/fe93b3d9d625f9ccf8eb7b0c39e0ff41c72d2e77.patch";
sha256 = "sha256-t+GP5VG1S86vVSsisl85ZHBtOqxIi7QS83DA+HgRet4=";
})
];
pythonImportsCheck = [
"RMVtransport"
];