From bc28437f2c8e56e6721998f29ff71b45788d6089 Mon Sep 17 00:00:00 2001 From: tahanonu Date: Thu, 27 Jun 2024 18:59:12 +0100 Subject: [PATCH] python312Packages.pytest-responses: init at 0.5.1 --- .../pytest-responses/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-responses/default.nix diff --git a/pkgs/development/python-modules/pytest-responses/default.nix b/pkgs/development/python-modules/pytest-responses/default.nix new file mode 100644 index 000000000000..911fd0debdd2 --- /dev/null +++ b/pkgs/development/python-modules/pytest-responses/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4bcc8ea7d138..2a26207b7613 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12272,6 +12272,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 { };