Skip to content

Commit

Permalink
pytest-responses: init at 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochiahan committed Jun 23, 2024
1 parent 74fa570 commit c72339a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/pytest-responses/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib
, python3
, fetchFromGitHub
,
}:

python3.pkgs.buildPythonApplication rec {
pname = "pytest-responses";
version = "0.5.1";
format = "setuptools";

src = fetchFromGitHub {
owner = "getsentry";
repo = "pytest-responses";
rev = "refs/tags/${version}";
hash = "sha256-6QAiNWCJbo4rmaByrc8VNw39/eF3uqFOss3GJuCvpZg=";
};

buildInputs = with python3.pkgs; [ pytest ];

propagatedBuildInputs = with python3.pkgs; [
responses
flake8
];

doCheck = false;
checkPhase = ''
# allow to find the module helper during the test run
export PYTHONPATH=$PYTHONPATH:$PWD/tests
py.test tests
'';

pythonImportsCheck = [ "pytest_responses" ];

meta = {
description = "Plugin for py.test response";
homepage = "https://github.com/getsentry/pytest-responses";
license = "licenses.apache2";
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pytest-reponses";
platforms = lib.platforms.all;
};
}

0 comments on commit c72339a

Please sign in to comment.