Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
857 B
Nix
50 lines
857 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "distgen";
|
|
version = "2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-VG9EX9LHoZamBM3PEm5qGpViK39qD+PA8vcHTzvsW+o=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
argparse-manpage
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
distro
|
|
jinja2
|
|
six
|
|
pyyaml
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytest
|
|
mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
make test-unit PYTHON=${python3.executable}
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Templating system/generator for distributions";
|
|
mainProgram = "dg";
|
|
license = lib.licenses.gpl2Plus;
|
|
homepage = "https://distgen.readthedocs.io";
|
|
maintainers = with lib.maintainers; [ bachp ];
|
|
};
|
|
}
|