1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pyyaml,
7 setuptools,
8 setuptools-scm,
9 wheel,
10}:
11
12buildPythonPackage rec {
13 pname = "pyyaml-include";
14 version = "1.3.1";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "tanbro";
19 repo = "pyyaml-include";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-xsNMIEBYqMVQp+H8R7XpFCwROXA8I6bFvAuHrRvC+DI=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 setuptools-scm
27 wheel
28 ];
29
30 propagatedBuildInputs = [ pyyaml ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "yamlinclude" ];
35
36 meta = with lib; {
37 description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
38 homepage = "https://github.com/tanbro/pyyaml-include";
39 license = licenses.gpl3Plus;
40 maintainers = with maintainers; [ jonringer ];
41 };
42}