summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/yamlloader/default.nix
blob: 82ed1b8cee62462d06561b654e99e6ae0e497c9c (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
53
54
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatch-vcs,
  hatchling,
  pytestCheckHook,
  pyyaml,
  hypothesis,
}:

buildPythonPackage rec {
  pname = "yamlloader";
  version = "1.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Phynix";
    repo = "yamlloader";
    tag = version;
    hash = "sha256-BByyKCCRZZYloxKKZVhSyH82I4hZNxCRqUddinRzYpE=";
  };

  build-system = [
    hatch-vcs
    hatchling
  ];

  dependencies = [ pyyaml ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  disabledTestPaths = [
    # TypeError: cannot pickle '_thread.RLock' object
    # https://github.com/Phynix/yamlloader/issues/64
    "tests/test_ordereddict.py"
  ];

  pythonImportsCheck = [
    "yaml"
    "yamlloader"
  ];

  meta = {
    description = "Case-insensitive list for Python";
    homepage = "https://github.com/Phynix/yamlloader";
    changelog = "https://github.com/Phynix/yamlloader/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sarahec ];
  };
}