1{ buildPythonPackage
2, lib
3, fetchPypi
4, requests
5, pytest
6, six
7, werkzeug
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-localserver";
12 version = "0.4.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "a72af60a1ec8f73668a7884c86baf1fbe48394573cb4fa36709887217736c021";
17 };
18
19 propagatedBuildInputs = [ werkzeug ];
20 buildInputs = [ pytest six requests ];
21
22 checkPhase = ''
23 py.test
24 '';
25
26 meta = {
27 description = "Plugin for the pytest testing framework to test server connections locally";
28 homepage = https://pypi.python.org/pypi/pytest-localserver;
29 license = lib.licenses.mit;
30 };
31}
32