1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 fsspec,
12 pyyaml,
13
14 # tests
15 aiohttp,
16 pytestCheckHook,
17}:
18
19buildPythonPackage rec {
20 pname = "pyyaml-include";
21 version = "2.2";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "tanbro";
26 repo = "pyyaml-include";
27 tag = "v${version}";
28 hash = "sha256-nswSYRTZ6LTLSGh78DnrXl3q06Ap1J1IMKOESv1lJoY=";
29 };
30
31 build-system = [
32 setuptools
33 setuptools-scm
34 ];
35
36 dependencies = [
37 fsspec
38 pyyaml
39 ];
40
41 nativeCheckInputs = [
42 aiohttp
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "yaml_include" ];
47
48 __darwinAllowLocalNetworking = true;
49
50 meta = {
51 description = "Extending PyYAML with a custom constructor for including YAML files within YAML files";
52 homepage = "https://github.com/tanbro/pyyaml-include";
53 changelog = "https://github.com/tanbro/pyyaml-include/blob/v${version}/CHANGELOG.md";
54 license = lib.licenses.gpl3Plus;
55 maintainers = [ ];
56 };
57}