5a8b500490
GitOrigin-RevId: 1ca6b0a0cc38dbba0441202535c92841dd39d1ae
33 lines
690 B
Nix
33 lines
690 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-mock";
|
|
version = "3.5.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
checkInputs = [
|
|
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";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|