depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-mock/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

33 lines
697 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; [ nand0p ];
};
}