diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix new file mode 100644 index 000000000000..d6f30486f9b2 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, httpx +, pytest +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-httpx"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "Colin-b"; + repo = "pytest_httpx"; + rev = "v${version}"; + sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi"; + }; + + buildInputs = [ pytest ]; + + propagatedBuildInputs = [ + httpx + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "pytest_httpx" ]; + + meta = with lib; { + description = "Send responses to httpx"; + homepage = "https://github.com/Colin-b/pytest_httpx"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |