From 05f43031d2cfe1dc2626d6295700942fefebf4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 17 Feb 2021 14:07:36 +0100 Subject: [PATCH] pythonPackages.pytest-httpx: init at 0.10.1 --- .../python-modules/pytest-httpx/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-httpx/default.nix diff --git a/pkgs/development/python-modules/pytest-httpx/default.nix b/pkgs/development/python-modules/pytest-httpx/default.nix new file mode 100644 index 000000000000..d3b6654931be --- /dev/null +++ b/pkgs/development/python-modules/pytest-httpx/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchPypi, httpx, pytest }: + +buildPythonPackage rec { + pname = "pytest-httpx"; + version = "0.10.1"; + + src = fetchPypi { + inherit version; + pname = "pytest_httpx"; + extension = "tar.gz"; + sha256 = "13ld6nnsc3f7i4zl4qm1jh358z0awr6xfk05azwgngmjb7jmcz0a"; + }; + + propagatedBuildInputs = [ httpx pytest ]; + + # not in pypi tarball + doCheck = false; + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7c1f274c2b7f..972bcb2ef38b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6163,6 +6163,8 @@ in { pytest-httpserver = callPackage ../development/python-modules/pytest-httpserver { }; + pytest-httpx = callPackage ../development/python-modules/pytest-httpx { }; + pytest-instafail = callPackage ../development/python-modules/pytest-instafail { }; pytest-isort = callPackage ../development/python-modules/pytest-isort { };