2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
2022-06-26 10:26:21 +00:00
|
|
|
, aiosmtpd
|
2022-01-13 20:06:32 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, werkzeug
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-localserver";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.7.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-53tGVVy0OJMdIZxUvPn1lTwEB9ZFQ2pgK1cwur/T/js=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
aiosmtpd
|
2022-01-13 20:06:32 +00:00
|
|
|
werkzeug
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# all tests access network: does not work in sandbox
|
|
|
|
doCheck = false;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_localserver"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Plugin for the pytest testing framework to test server connections locally";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-localserver";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|