summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-mockito/default.nix
blob: 78137669be4bc6f883d1f0bb06d3523f9e5ce8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatch-vcs,
  hatchling,
  pytest,
  mockito,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-mockito";
  version = "0.0.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kaste";
    repo = "pytest-mockito";
    rev = version;
    hash = "sha256-GX3esFlMtKRCTjvTPS4jrnK/mV9eIENvDXRo5sOqBGc=";
  };

  build-system = [
    hatch-vcs
    hatchling
  ];

  buildInputs = [ pytest ];

  dependencies = [ mockito ];

  pythonImportsCheck = [ "pytest_mockito" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Base fixtures for mockito";
    homepage = "https://github.com/kaste/pytest-mockito";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}