2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
pytest,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-httpx";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.30.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Colin-b";
|
|
|
|
repo = "pytest_httpx";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-JfyqeOCHNHO4IEHVrh47TdWvb8lcy/1Prqnfphs0ufM=";
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2024-02-29 20:09:43 +00:00
|
|
|
setuptools-scm
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ httpx ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "httpx" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pytest_httpx" ];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Send responses to httpx";
|
|
|
|
homepage = "https://github.com/Colin-b/pytest_httpx";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/Colin-b/pytest_httpx/blob/v${version}/CHANGELOG.md";
|
2021-02-17 17:02:09 +00:00
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
}
|