Merge pull request #207721 from fabaff/pytest-httpserver-fix

python310Packages.pytest-httpserver: add changelog to meta
This commit is contained in:
Fabian Affolter
2022-12-29 12:12:01 +01:00
committed by GitHub
@@ -1,35 +1,50 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest-cov
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
, toml
, werkzeug
}:
buildPythonPackage rec {
pname = "pytest-httpserver";
version = "1.0.6";
format = "pyproject";
src = fetchPypi {
pname = "pytest_httpserver";
inherit version;
sha256 = "sha256-kEDQe/WaxF2N49sdRGj9LR1geXXk2kyHLswEAs2/ez4=";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "csernazs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs=";
};
propagatedBuildInputs = [ werkzeug ];
checkInputs = [
pytest-cov
pytestCheckHook
requests
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [ "pytest_httpserver" ];
propagatedBuildInputs = [
werkzeug
];
checkInputs = [
pytestCheckHook
requests
toml
];
pythonImportsCheck = [
"pytest_httpserver"
];
meta = with lib; {
description = "HTTP server for pytest to test HTTP clients";
homepage = "https://www.github.com/csernazs/pytest-httpserver";
changelog = "https://github.com/csernazs/pytest-httpserver/blob/${version}/CHANGES.rst";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};