1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyyaml 5, jinja2 6}: 7 8buildPythonPackage rec { 9 pname = "hiyapyco"; 10 version = "0.5.1"; 11 12 src = fetchFromGitHub { 13 owner = "zerwes"; 14 repo = pname; 15 rev = "refs/tags/release-${version}"; 16 hash = "sha256-MVJoMnEi+319ZkhffYWYVi/wj0Ihm0nfVeEXvx7Ac/4="; 17 }; 18 19 propagatedBuildInputs = [ 20 pyyaml 21 jinja2 22 ]; 23 24 checkPhase = '' 25 set -e 26 find test -name 'test_*.py' -exec python {} \; 27 ''; 28 29 pythonImportsCheck = [ "hiyapyco" ]; 30 31 meta = with lib; { 32 description = "Python library allowing hierarchical overlay of config files in YAML syntax"; 33 homepage = "https://github.com/zerwes/hiyapyco"; 34 license = licenses.gpl3Plus; 35 maintainers = with maintainers; [ veehaitch ]; 36 }; 37}