3b21d1e521
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
37 lines
745 B
Nix
37 lines
745 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, requests
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-httpserver";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "pytest_httpserver";
|
|
inherit version;
|
|
sha256 = "sha256-rjCV0TTUBgLpVyEUDiIhOdpKV5lWEjmQr4WCUyTQdG0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|