depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-httpserver/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
1.1 KiB
Nix

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