5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
39 lines
802 B
Nix
39 lines
802 B
Nix
{ lib
|
|
, aiosmtpd
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, werkzeug
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-localserver";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-8ZtJDHyh7QW/5LxrSQgRgFph5ycfBCTTwPpNQ4k6Xc0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|