nixpkgs/pkgs/development/python-modules/pytest-httpx/default.nix
2023-01-05 01:10:24 +01:00

49 lines
826 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytest
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-httpx";
version = "0.21.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Colin-b";
repo = "pytest_httpx";
rev = "refs/tags/v${version}";
hash = "sha256-pIYSXmOxLfWknWTfrnhslx76UMSSlnqzFE7qvJo1mz4=";
};
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; [ fab ];
};
}