2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2020-05-29 06:06:01 +00:00
|
|
|
, pyyaml
|
|
|
|
, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "hiyapyco";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.5.5";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-LuENNwVB/1GyPLsfMRwHjz87c7+3/7U82m1MnHfRHdU=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|