1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyyaml,
7 jinja2,
8}:
9
10buildPythonPackage rec {
11 pname = "hiyapyco";
12 version = "0.7.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "zerwes";
17 repo = "hiyapyco";
18 tag = "release-${version}";
19 hash = "sha256-uF5DblAg4q8L1tZKopcjJ14NIQVQF5flNHdZ/jnw71M=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [
25 pyyaml
26 jinja2
27 ];
28
29 checkPhase = ''
30 runHook preCheck
31
32 set -e
33 find test -name 'test_*.py' -exec python {} \;
34
35 runHook postCheck
36 '';
37
38 pythonImportsCheck = [ "hiyapyco" ];
39
40 meta = with lib; {
41 description = "Python library allowing hierarchical overlay of config files in YAML syntax";
42 homepage = "https://github.com/zerwes/hiyapyco";
43 license = licenses.gpl3Plus;
44 maintainers = with maintainers; [ veehaitch ];
45 };
46}