depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-localserver/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

40 lines
893 B
Nix

{ lib
, aiosmtpd
, buildPythonPackage
, fetchPypi
, werkzeug
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-localserver";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-XZDOfQhddB51n6hU29LnxbVXMh1pUXmJTrQOIQ6i/zA=";
};
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 ];
};
}