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