mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
38 lines
763 B
Nix
38 lines
763 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyyaml
|
|
, jinja2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hiyapyco";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zerwes";
|
|
repo = pname;
|
|
rev = "refs/tags/release-${version}";
|
|
sha256 = "sha256-MVJoMnEi+319ZkhffYWYVi/wj0Ihm0nfVeEXvx7Ac/4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
jinja2
|
|
];
|
|
|
|
checkPhase = ''
|
|
set -e
|
|
find test -name 'test_*.py' -exec python {} \;
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|