pythonPackages.PyRMVtransport: fix tests

This commit is contained in:
Sandro Jäckel 2021-02-16 22:35:49 +01:00
parent 3364bf685b
commit f182ce88b8
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,8 +1,14 @@
{ lib, buildPythonPackage, fetchFromGitHub
, flit
, lxml, httpx
, pytest, pytestcov, pytest-asyncio, pytest-mock, aresponses
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, flit
, async-timeout
, lxml
, httpx
, pytestCheckHook
, pytest-asyncio
, pytest-httpx
}:
buildPythonPackage rec {
@ -23,24 +29,18 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
async-timeout
httpx
lxml
];
# requires pytest-httpx
doCheck = false;
pythonImportsCheck = [ "RMVtransport" ];
checkInputs = [
pytest
pytestcov
pytestCheckHook
pytest-asyncio
pytest-mock
# pytest-httpx is missing
aresponses
pytest-httpx
];
checkPhase = ''
pytest --cov=RMVtransport tests
'';
meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport";