2017-05-30 16:47:00 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-localserver";
|
2019-02-14 07:37:27 +00:00
|
|
|
version = "0.5.0";
|
2017-05-30 16:47:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:27 +00:00
|
|
|
sha256 = "3a5427909d1dfda10772c1bae4b9803679c0a8f04adb66c338ac607773bfefc2";
|
2017-05-30 16:47:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ werkzeug ];
|
2019-02-14 14:06:07 +00:00
|
|
|
checkInputs = [ pytest six requests ];
|
2017-05-30 16:47:00 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-02-14 14:06:07 +00:00
|
|
|
pytest
|
2017-05-30 16:47:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Plugin for the pytest testing framework to test server connections locally";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/pytest-localserver";
|
2017-05-30 16:47:00 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|