diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-03 09:54:43 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-03 09:54:43 +0200 |
commit | b82d742a875419c56822b6e73f87a9ffce221cb3 (patch) | |
tree | 69e29276fe796475bc721ab806fa5476287d4557 /pkgs/development/python-modules/respx | |
parent | 72dce4c560ae2a6f687d2304ee3bbbc845bfbc11 (diff) |
python3Packages.respx: 0.17.0 -> 0.17.1
Diffstat (limited to 'pkgs/development/python-modules/respx')
-rw-r--r-- | pkgs/development/python-modules/respx/default.nix | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/respx/default.nix b/pkgs/development/python-modules/respx/default.nix index 0a3fa27a8086c..0d7f509b4a0e7 100644 --- a/pkgs/development/python-modules/respx/default.nix +++ b/pkgs/development/python-modules/respx/default.nix @@ -3,40 +3,46 @@ , fetchFromGitHub , httpcore , httpx +, flask , pytest-asyncio -, pytest-cov , pytestCheckHook +, starlette , trio }: buildPythonPackage rec { pname = "respx"; - version = "0.17.0"; + version = "0.17.1"; src = fetchFromGitHub { owner = "lundberg"; repo = pname; rev = version; - sha256 = "sha256-unGAIsslGXOUHXr0FKzC9bX6+Q3mNGZ9Z/dtjz0gkj4="; + sha256 = "0w8idh6l2iq04ydz7r2qisq9jsxq8wszkx97kx4g3yjwg4ypvc6k"; }; - # Coverage is under 100 % due to the excluded tests - postPatch = '' - substituteInPlace setup.cfg --replace "--cov-fail-under 100" "" - ''; - - propagatedBuildInputs = [ httpx ]; + propagatedBuildInputs = [ + httpx + ]; checkInputs = [ httpcore httpx + flask pytest-asyncio - pytest-cov pytestCheckHook + starlette trio ]; - disabledTests = [ "test_pass_through" ]; + postPatch = '' + sed -i "/--cov/d" setup.cfg + ''; + + disabledTests = [ + "test_pass_through" + ]; + pythonImportsCheck = [ "respx" ]; meta = with lib; { |