mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
55 lines
882 B
Nix
55 lines
882 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpcore
|
|
, httpx
|
|
, flask
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, starlette
|
|
, trio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "respx";
|
|
version = "0.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lundberg";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-xiAt42kc1+rro99KMwzYKi3XC+wxYVqOY11tM+M/uV8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|