depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-localserver/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

39 lines
802 B
Nix

{ lib
, aiosmtpd
, buildPythonPackage
, fetchPypi
, werkzeug
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-localserver";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3cR5q6lqfaDnocx9OjA+UFgtbVBYA+j2e4JyGPn+D2U=";
};
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";
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};
}