linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pytest-mock / default.nix
blob3e044b4fe59657bdb8c90e51551adee7cce2b786
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest-asyncio
5 , pytestCheckHook
6 , setuptools_scm
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-mock";
11   version = "3.5.1";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1";
16   };
18   nativeBuildInputs = [ setuptools_scm ];
20   checkInputs = [
21     pytest-asyncio
22     pytestCheckHook
23   ];
25   pythonImportsCheck = [ "pytest_mock" ];
27   meta = with lib; {
28     description = "Thin-wrapper around the mock package for easier use with pytest";
29     homepage = "https://github.com/pytest-dev/pytest-mock";
30     license = with licenses; [ mit ];
31     maintainers = with maintainers; [ nand0p ];
32   };