depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix

41 lines
746 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-httpx";
version = "0.12.1";
src = fetchFromGitHub {
owner = "Colin-b";
repo = "pytest_httpx";
rev = "v${version}";
sha256 = "sha256-eyR0h0fW5a+L6QslTnM0TPvQCto06aMcKCE+b8LqHcQ=";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
httpx
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pytest_httpx" ];
meta = with lib; {
description = "Send responses to httpx";
homepage = "https://github.com/Colin-b/pytest_httpx";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}