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