Files
nixpkgs/pkgs/development/python-modules/pytest-httpserver/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
requests,
toml,
werkzeug,
}:
buildPythonPackage rec {
pname = "pytest-httpserver";
version = "1.1.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "csernazs";
repo = "pytest-httpserver";
tag = version;
hash = "sha256-5pyCDzt9nCwYcUdCjWlJiAkyNmf6oWBqSHQL7kJJluA=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ werkzeug ];
nativeCheckInputs = [
pytestCheckHook
requests
toml
];
__darwinAllowLocalNetworking = true;
disabledTests = [
"test_wait_raise_assertion_false" # racy
];
pythonImportsCheck = [ "pytest_httpserver" ];
meta = {
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/${src.tag}/CHANGES.rst";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}