Files
nixpkgs/pkgs/development/python-modules/hiyapyco/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyyaml,
jinja2,
}:
buildPythonPackage rec {
pname = "hiyapyco";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zerwes";
repo = "hiyapyco";
tag = "release-${version}";
hash = "sha256-uF5DblAg4q8L1tZKopcjJ14NIQVQF5flNHdZ/jnw71M=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
pyyaml
jinja2
];
checkPhase = ''
runHook preCheck
set -e
find test -name 'test_*.py' -exec python {} \;
runHook postCheck
'';
pythonImportsCheck = [ "hiyapyco" ];
meta = {
description = "Python library allowing hierarchical overlay of config files in YAML syntax";
homepage = "https://github.com/zerwes/hiyapyco";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ veehaitch ];
};
}