Merge pull request #321862 from Tochiaha/pytest-responses

python312Packages.pytest-responses: init at 0.5.1
This commit is contained in:
Sandro 2024-07-04 21:50:57 +02:00 committed by GitHub
commit ab0b07ea43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
responses,
}:
buildPythonPackage rec {
pname = "pytest-responses";
version = "0.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "getsentry";
repo = "pytest-responses";
rev = "refs/tags/${version}";
hash = "sha256-6QAiNWCJbo4rmaByrc8VNw39/eF3uqFOss3GJuCvpZg=";
};
build-system = [ setuptools ];
dependencies = [ responses ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytest_responses" ];
meta = {
description = "Plugin for py.test response";
homepage = "https://github.com/getsentry/pytest-responses";
changelog = "https://github.com/getsentry/pytest-responses/blob/${version}/CHANGES";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pytest-reponses";
};
}

View File

@ -12362,6 +12362,8 @@ self: super: with self; {
pytest-resource-path = callPackage ../development/python-modules/pytest-resource-path { };
pytest-responses = callPackage ../development/python-modules/pytest-responses { };
pytest-runner = callPackage ../development/python-modules/pytest-runner { };
pytest-server-fixtures = callPackage ../development/python-modules/pytest-server-fixtures { };