depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-localserver/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
895 B
Nix

{
lib,
aiosmtpd,
buildPythonPackage,
fetchPypi,
werkzeug,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pytest-localserver";
version = "0.8.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZlacNP7zGldQsW7/0c0SiKepC1kVXQBef5FqzNPe5PE=";
};
propagatedBuildInputs = [
aiosmtpd
werkzeug
];
# all tests access network: does not work in sandbox
doCheck = false;
pythonImportsCheck = [ "pytest_localserver" ];
meta = with lib; {
description = "Plugin for the pytest testing framework to test server connections locally";
homepage = "https://github.com/pytest-dev/pytest-localserver";
changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES";
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};
}