2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pyyaml,
|
|
|
|
jinja2,
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "hiyapyco";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.5.6";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zerwes";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/release-${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-WBSOjOX4naa0XDTnO593EAvtz5EjVPWCbiZaPXdx0e4=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
jinja2
|
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
checkPhase = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
set -e
|
|
|
|
find test -name 'test_*.py' -exec python {} \;
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
runHook postCheck
|
2020-05-29 06:06:01 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
pythonImportsCheck = [ "hiyapyco" ];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
meta = with lib; {
|
2021-09-26 12:46:18 +00:00
|
|
|
description = "Python library allowing hierarchical overlay of config files in YAML syntax";
|
2020-05-29 06:06:01 +00:00
|
|
|
homepage = "https://github.com/zerwes/hiyapyco";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-05-29 06:06:01 +00:00
|
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
|
|
};
|
|
|
|
}
|