2021-02-03 22:20:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-httpserver";
|
2021-02-05 07:27:17 +00:00
|
|
|
version = "0.3.7";
|
2021-02-03 22:20:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pytest_httpserver";
|
|
|
|
inherit version;
|
2021-02-05 07:27:17 +00:00
|
|
|
sha256 = "sha256-YgTcrUlwh2jz0tJdMUgjm8RcqrtpJ/oUQm3SnxUc5Z4=";
|
2021-02-03 22:20:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ werkzeug ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pytest_httpserver" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP server for pytest to test HTTP clients";
|
|
|
|
homepage = "https://www.github.com/csernazs/pytest-httpserver";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|