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