nixpkgs/pkgs/development/python-modules/pytest-mock/default.nix

34 lines
697 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytest-asyncio
, pytestCheckHook
, setuptools_scm
}:
buildPythonPackage rec {
pname = "pytest-mock";
version = "3.5.1";
2019-02-14 07:37:27 +00:00
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 ];
};
}