54 lines
883 B
Nix
54 lines
883 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpcore
|
|
, httpx
|
|
, flask
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, starlette
|
|
, trio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "respx";
|
|
version = "0.17.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lundberg";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0w8idh6l2iq04ydz7r2qisq9jsxq8wszkx97kx4g3yjwg4ypvc6k";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
httpx
|
|
];
|
|
|
|
checkInputs = [
|
|
httpcore
|
|
httpx
|
|
flask
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
starlette
|
|
trio
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i "/--cov/d" setup.cfg
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_pass_through"
|
|
];
|
|
|
|
pythonImportsCheck = [ "respx" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for mocking HTTPX";
|
|
homepage = "https://lundberg.github.io/respx/";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|