depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-httpserver/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

51 lines
990 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
, toml
, werkzeug
}:
buildPythonPackage rec {
pname = "pytest-httpserver";
version = "1.0.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "csernazs";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-LY5Ur0cIcsNrgvyQlY2E479ZzRcuwqTuiT2MtRupVcs=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
werkzeug
];
nativeCheckInputs = [
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 ];
};
}