blob: 3a8840b3d7b281e19954a0dcf8e8138e08bbe768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
aiosmtpd,
buildPythonPackage,
fetchPypi,
werkzeug,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pytest-localserver";
version = "0.9.0.post0";
pyproject = true;
src = fetchPypi {
pname = "pytest_localserver";
inherit version;
hash = "sha256-gDOjb7OC0rxIUPms/iw/tWVM1fDRY69tr0fykNt9X/A=";
};
build-system = [ setuptools-scm ];
dependencies = [ werkzeug ];
optional-dependencies = {
smtp = [ aiosmtpd ];
};
# All tests access network: does not work in sandbox
doCheck = false;
pythonImportsCheck = [ "pytest_localserver" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ siriobalmelli ];
};
}
|