Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiosmtpd 3, buildPythonPackage 4, fetchPypi 5, werkzeug 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-localserver"; 11 version = "0.7.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-53tGVVy0OJMdIZxUvPn1lTwEB9ZFQ2pgK1cwur/T/js="; 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 changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ siriobalmelli ]; 39 }; 40}