nixpkgs/pkgs/development/python-modules/pytest-httpserver/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

49 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
requests,
toml,
werkzeug,
}:
buildPythonPackage rec {
pname = "pytest-httpserver";
version = "1.1.3";
pyproject = true;
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 ];
};
}