mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

Diff: https://github.com/pytest-dev/pytest-mock/compare/refs/tags/v3.14.0...refs/tags/v3.14.1 Changelog: https://github.com/pytest-dev/pytest-mock/blob/v3.14.1/CHANGELOG.rst
45 lines
949 B
Nix
45 lines
949 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-mock";
|
|
version = "3.14.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pytest-mock";
|
|
tag = "v${version}";
|
|
hash = "sha256-aOa/MQAgQePX/NivQ6G37r70sZnqBA+y+GXvPVBxmvs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_mock" ];
|
|
|
|
meta = with lib; {
|
|
description = "Thin wrapper around the mock package for easier use with pytest";
|
|
homepage = "https://github.com/pytest-dev/pytest-mock";
|
|
changelog = "https://github.com/pytest-dev/pytest-mock/blob/${src.tag}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|