depot/third_party/nixpkgs/pkgs/development/python-modules/hiyapyco/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
884 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pyyaml
, jinja2
}:
buildPythonPackage rec {
pname = "hiyapyco";
version = "0.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "zerwes";
repo = pname;
rev = "refs/tags/release-${version}";
hash = "sha256-hKTqdclWMKTGeRtQuNj0gYdiGFovFh5FQ2rRjCgbvBM=";
};
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 ];
};
}