mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
distgen: 1.18 -> 2.1
This commit is contained in:
parent
4f40647de5
commit
689c17d2e2
1 changed files with 23 additions and 11 deletions
|
@ -6,32 +6,44 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "distgen";
|
pname = "distgen";
|
||||||
version = "1.18";
|
version = "2.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-lS6OeEaPiK8Pskuoww9KwyNhKnGQ+dHhdPmZn1Igj0Q=";
|
hash = "sha256-VG9EX9LHoZamBM3PEm5qGpViK39qD+PA8vcHTzvsW+o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
build-system = with python3.pkgs; [
|
||||||
pytest
|
setuptools
|
||||||
mock
|
argparse-manpage
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
distro
|
distro
|
||||||
jinja2
|
jinja2
|
||||||
six
|
six
|
||||||
pyyaml
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = "make test-unit PYTHON=${python3.executable}";
|
nativeCheckInputs = with python3.pkgs; [
|
||||||
|
pytest
|
||||||
|
mock
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
make test-unit PYTHON=${python3.executable}
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Templating system/generator for distributions";
|
description = "Templating system/generator for distributions";
|
||||||
mainProgram = "dg";
|
mainProgram = "dg";
|
||||||
license = licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
homepage = "https://distgen.readthedocs.io/";
|
homepage = "https://distgen.readthedocs.io";
|
||||||
maintainers = with maintainers; [ bachp ];
|
maintainers = with lib.maintainers; [ bachp ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue