summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-httpserver/default.nix
diff options
context:
space:
mode:
authorJason Lau <i@dotkrnl.com>2021-06-14 12:08:30 -0700
committerGitHub <noreply@github.com>2021-06-14 12:08:30 -0700
commite7f32dbbe630d915314427cb6d70e552fecb44ab (patch)
tree5daf30923f0b50ec3297e5f9408384749d82ef1d /pkgs/development/python-modules/pytest-httpserver/default.nix
parent9fd2cb7597c9174720db9f09f58d92818da0ade0 (diff)
parent821b34edaf9911481ad4dd5de6bea43739f578be (diff)
Merge branch 'master' into patch-2
Diffstat (limited to 'pkgs/development/python-modules/pytest-httpserver/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-httpserver/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix
new file mode 100644
index 000000000000..f790629a29cf
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-httpserver/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytest-asyncio
+, pytest-cov
+, pytestCheckHook
+, requests
+, werkzeug
+}:
+
+buildPythonPackage rec {
+ pname = "pytest-httpserver";
+ version = "0.3.7";
+
+ src = fetchPypi {
+ pname = "pytest_httpserver";
+ inherit version;
+ sha256 = "sha256-YgTcrUlwh2jz0tJdMUgjm8RcqrtpJ/oUQm3SnxUc5Z4=";
+ };
+
+ propagatedBuildInputs = [ werkzeug ];
+
+ checkInputs = [
+ pytest-cov
+ pytestCheckHook
+ requests
+ ];
+
+ pythonImportsCheck = [ "pytest_httpserver" ];
+
+ meta = with lib; {
+ description = "HTTP server for pytest to test HTTP clients";
+ homepage = "https://www.github.com/csernazs/pytest-httpserver";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ fab ];
+ };
+}