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