2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-01-20 10:41:00 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, requests
|
2023-01-20 10:41:00 +00:00
|
|
|
, toml
|
2021-02-05 17:12:51 +00:00
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-httpserver";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.0.6";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "csernazs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
werkzeug
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
2023-01-20 10:41:00 +00:00
|
|
|
toml
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_httpserver"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "HTTP server for pytest to test HTTP clients";
|
|
|
|
homepage = "https://www.github.com/csernazs/pytest-httpserver";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/csernazs/pytest-httpserver/blob/${version}/CHANGES.rst";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|