2017-05-30 16:47:00 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-localserver";
|
|
|
|
name = "${pname}-${version}";
|
2017-12-30 11:26:38 +00:00
|
|
|
version = "0.4.1";
|
2017-05-30 16:47:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:26:38 +00:00
|
|
|
sha256 = "a72af60a1ec8f73668a7884c86baf1fbe48394573cb4fa36709887217736c021";
|
2017-05-30 16:47:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ werkzeug ];
|
|
|
|
buildInputs = [ pytest six requests ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|