summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-pook/default.nix
blob: 5147e6f83d08898f2ae4c13e4dbce3e8703027bb (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
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  fetchFromSourcehut,
  hatchling,
  pook,
  pytest,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "pytest-pook";
  version = "1.0.0";
  pyproject = true;

  src = fetchFromSourcehut {
    owner = "~sara";
    repo = "pytest-pook";
    rev = "a7c2d0ca4287af671ebd065b0f6415bb4110f338";
    hash = "sha256-q2HaoIB2CW5LaRggLlmar2AEa4X8cI/aY2Sz/Y7LWMs=";
  };

  build-system = [
    hatchling
  ];

  buildInputs = [
    pytest
  ];

  dependencies = [
    (pook.overridePythonAttrs { doCheck = false; })
  ];

  # fails in various ways
  doCheck = false;

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pytest_pook"
  ];

  meta = {
    description = "Pytest plugin for pook";
    homepage = "https://git.sr.ht/~sara/pytest-pook";
    license = lib.licenses.lgpl3Only;
    maintainers = pook.meta.maintainers;
  };
}