2021-02-03 23:20:34 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-httpserver";
|
2021-08-06 10:31:35 +02:00
|
|
|
version = "1.0.1";
|
2021-02-03 23:20:34 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pytest_httpserver";
|
|
|
|
inherit version;
|
2021-08-06 10:31:35 +02:00
|
|
|
sha256 = "12b0028vp5rh9bg712klgjzm4vl4biyza1j6iyv3pgg25ircang3";
|
2021-02-03 23:20:34 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|