depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-httpbin/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpbin,
pytest,
pytestCheckHook,
pythonOlder,
requests,
six,
}:
buildPythonPackage rec {
pname = "pytest-httpbin";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kevin1024";
repo = "pytest-httpbin";
rev = "refs/tags/v${version}";
hash = "sha256-tq9nz2na94HkLACt7xB1MUanh9/JOoe2vyEm5sAq0/4=";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
httpbin
six
];
nativeCheckInputs = [
pytestCheckHook
requests
];
disabledTests = [
# incompatible with flask 2.3
"test_redirect_location_is_https_for_secure_server"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pytest_httpbin" ];
meta = with lib; {
description = "Test your HTTP library against a local copy of httpbin.org";
homepage = "https://github.com/kevin1024/pytest-httpbin";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}