1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyyaml,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pyaml-env";
12 version = "1.2.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "mkaranasou";
17 repo = "pyaml_env";
18 tag = "v${version}";
19 hash = "sha256-Mp5Zn2JA6j/OTkPCRggNdqdWkrUYyYHMVK6hy/EI0I8=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ pyyaml ];
25
26 pythonImportsCheck = [ "pyaml_env" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = {
31 description = "Parse YAML configuration with environment variables in Python";
32 homepage = "https://github.com/mkaranasou/pyaml_env";
33 changelog = "https://github.com/mkaranasou/pyaml_env/releases/tag/v${version}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ natsukium ];
36 };
37}