2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3, fetchPypi }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "distgen";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Md6R1thUtPQ7BFZsWmTDuNdD7UHMMFlEVksIJZAyjk4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
distro
|
|
|
|
jinja2
|
|
|
|
six
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = "make test-unit PYTHON=${python3.executable}";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Templating system/generator for distributions";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dg";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = "https://distgen.readthedocs.io/";
|
|
|
|
maintainers = with maintainers; [ bachp ];
|
|
|
|
};
|
|
|
|
}
|