0215034f25
when they already rely on SRI hashes.
55 lines
968 B
Nix
55 lines
968 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpcore
|
|
, httpx
|
|
, flask
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, starlette
|
|
, trio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "respx";
|
|
version = "0.20.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lundberg";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Qs3+NWMKiAFlKTTosdyHOxWRPKFlYQD20+MKiKR371U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
httpx
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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/";
|
|
changelog = "https://github.com/lundberg/respx/blob/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|