1{ lib, buildPythonPackage, fetchPypi
2, pytestCheckHook
3, pyyaml
4, setuptools-scm
5, setuptools-scm-git-archive
6, toml
7}:
8
9buildPythonPackage rec {
10 pname = "pyyaml-include";
11 version = "1.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-9/vrjnG1C+Dm4HRy98edv7GhW63pyToHg2n/SeV+Z3E=";
16 };
17
18 nativeBuildInputs = [
19 pyyaml
20 setuptools-scm
21 setuptools-scm-git-archive
22 toml
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "yamlinclude" ];
30
31 meta = with lib; {
32 description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
33 homepage = "https://github.com/tanbro/pyyaml-include";
34 license = licenses.gpl3Plus;
35 maintainers = with maintainers; [ jonringer ];
36 };
37}