summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tappy/default.nix
blob: 16dadf91462bea982bb8685282cd7585003395d1 (about) (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
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchPypi,
  hatchling,
  pyyaml,
  more-itertools,
  pytestCheckHook,
}:
let
  version = "3.2.1";
in
buildPythonPackage {
  pname = "tap.py";
  inherit version;
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    pname = "tap_py";
    inherit version;
    hash = "sha256-0DyeavClb62ZTxxp8UBB5naBHXPu7vIL9Ad8Q9Yh1gg=";
  };

  build-system = [
    hatchling
  ];

  optional-dependencies = {
    yaml = [
      pyyaml
      more-itertools
    ];
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "tap" ];

  meta = {
    description = "Set of tools for working with the Test Anything Protocol (TAP) in Python";
    homepage = "https://github.com/python-tap/tappy";
    changelog = "https://tappy.readthedocs.io/en/latest/releases.html";
    mainProgram = "tappy";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ ];
  };
}