python311Packages.respx: 0.20.2 -> 0.21.0
Diff: https://github.com/lundberg/respx/compare/0.20.2...0.21.0 Changelog: https://github.com/lundberg/respx/blob/0.21.0/CHANGELOG.md
This commit is contained in:
committed by
Martin Weinelt
parent
d72cc8b780
commit
67bdfbe30b
@@ -8,25 +8,32 @@
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
starlette,
|
||||
trio,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "respx";
|
||||
version = "0.20.2";
|
||||
format = "setuptools";
|
||||
version = "0.21.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lundberg";
|
||||
repo = pname;
|
||||
repo = "respx";
|
||||
rev = version;
|
||||
hash = "sha256-OiBKNK8V9WNQDe29Q5+E/jjBWD0qFcYUzhYUWA+7oFc=";
|
||||
hash = "sha256-fjZ5JMWOZUnDLTdIexhnB5ZVYJOVUGraxNpDpB9ZrAU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ httpx ];
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ httpx ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
httpcore
|
||||
@@ -38,10 +45,6 @@ buildPythonPackage rec {
|
||||
trio
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
disabledTests = [ "test_pass_through" ];
|
||||
|
||||
pythonImportsCheck = [ "respx" ];
|
||||
@@ -50,7 +53,7 @@ buildPythonPackage rec {
|
||||
description = "Python library for mocking HTTPX";
|
||||
homepage = "https://lundberg.github.io/respx/";
|
||||
changelog = "https://github.com/lundberg/respx/blob/${version}/CHANGELOG.md";
|
||||
license = with licenses; [ bsd3 ];
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user