vscode-extensions.github.copilot{*}: bump (#364729)
[NixPkgs.git] / pkgs / development / python-modules / pytest-localserver / default.nix
blob009615455970bcc2fff255ac83a4acf11d2750df
2   lib,
3   aiosmtpd,
4   buildPythonPackage,
5   fetchPypi,
6   werkzeug,
7   pythonOlder,
8   setuptools-scm,
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-localserver";
13   version = "0.9.0";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchPypi {
19     pname = "pytest_localserver";
20     inherit version;
21     hash = "sha256-+voCggk37n050B11D9Bc6xl/xfPIlfgbysOCbbCQh+0=";
22   };
24   build-system = [ setuptools-scm ];
26   dependencies = [ werkzeug ];
28   optional-dependencies = {
29     smtp = [ aiosmtpd ];
30   };
32   # All tests access network: does not work in sandbox
33   doCheck = false;
35   pythonImportsCheck = [ "pytest_localserver" ];
37   meta = with lib; {
38     description = "Plugin for the pytest testing framework to test server connections locally";
39     homepage = "https://github.com/pytest-dev/pytest-localserver";
40     changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES";
41     license = licenses.mit;
42     maintainers = with maintainers; [ siriobalmelli ];
43   };