about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-localserver
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-05-30 17:47:00 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2017-05-30 17:47:00 +0200
commit3c83ce30142426807dd7fdef02e2e404f6ad5d9e (patch)
tree411e0eac8d8b85578cd7241d388fd3e93b5f9aa4 /pkgs/development/python-modules/pytest-localserver
parent46bcd051858af15e2ee771bc46248b1d5e44bc8c (diff)
pythonPackages.pytest-localserver: 0.3.5 -> 0.3.7 (#26238)
* pythonPackages.pytest-localserver: 0.3.5 -> 0.3.7

* pythonPackages.pytest-localserver: Change to use python packaging tools

* pythonPackages.pytest-localserver: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/pytest-localserver')
-rw-r--r--pkgs/development/python-modules/pytest-localserver/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-localserver/default.nix b/pkgs/development/python-modules/pytest-localserver/default.nix
new file mode 100644
index 0000000000000..fdd1986c04fc6
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-localserver/default.nix
@@ -0,0 +1,33 @@
+{ buildPythonPackage
+, lib
+, fetchPypi
+, requests
+, pytest
+, six
+, werkzeug
+}:
+
+buildPythonPackage rec {
+  pname = "pytest-localserver";
+  name = "${pname}-${version}";
+  version = "0.3.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1c11hn61n06ms0wmw6536vs5k4k9hlndxsb3p170nva56a9dfa6q";
+  };
+
+  propagatedBuildInputs = [ werkzeug ];
+  buildInputs = [ pytest six requests ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = {
+    description = "Plugin for the pytest testing framework to test server connections locally";
+    homepage = https://pypi.python.org/pypi/pytest-localserver;
+    license = lib.licenses.mit;
+  };
+}
+