pythonPackages.PyRMVtransport: fix tests
This commit is contained in:
parent
3364bf685b
commit
f182ce88b8
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user