summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyyaml-include/default.nix
blob: 2a4909c3c28e8e5a258da6514828d48a5b0f8ccf (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
55
56
57
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,
  setuptools-scm,

  # dependencies
  fsspec,
  pyyaml,

  # tests
  aiohttp,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyyaml-include";
  version = "2.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tanbro";
    repo = "pyyaml-include";
    tag = "v${version}";
    hash = "sha256-nswSYRTZ6LTLSGh78DnrXl3q06Ap1J1IMKOESv1lJoY=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    fsspec
    pyyaml
  ];

  nativeCheckInputs = [
    aiohttp
    pytestCheckHook
  ];

  pythonImportsCheck = [ "yaml_include" ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
    homepage = "https://github.com/tanbro/pyyaml-include";
    changelog = "https://github.com/tanbro/pyyaml-include/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
  };
}