1{
2 lib,
3 aiosmtpd,
4 buildPythonPackage,
5 fetchPypi,
6 werkzeug,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-localserver";
12 version = "0.8.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-ZlacNP7zGldQsW7/0c0SiKepC1kVXQBef5FqzNPe5PE=";
20 };
21
22 propagatedBuildInputs = [
23 aiosmtpd
24 werkzeug
25 ];
26
27 # all tests access network: does not work in sandbox
28 doCheck = false;
29
30 pythonImportsCheck = [ "pytest_localserver" ];
31
32 meta = with lib; {
33 description = "Plugin for the pytest testing framework to test server connections locally";
34 homepage = "https://github.com/pytest-dev/pytest-localserver";
35 changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES";
36 license = licenses.mit;
37 maintainers = with maintainers; [ siriobalmelli ];
38 };
39}