bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
46 lines
886 B
Nix
46 lines
886 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pyyaml,
|
|
jinja2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hiyapyco";
|
|
version = "0.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zerwes";
|
|
repo = pname;
|
|
rev = "refs/tags/release-${version}";
|
|
hash = "sha256-F+OPoFEUTHWSo5Pc46Wwt4j/x7w0BjhJhpLEdNPr7H0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
jinja2
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
set -e
|
|
find test -name 'test_*.py' -exec python {} \;
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "hiyapyco" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library allowing hierarchical overlay of config files in YAML syntax";
|
|
homepage = "https://github.com/zerwes/hiyapyco";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
};
|
|
}
|