ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / di / distgen / package.nix
blob7450e7c10d294291e99511c3daf393b32938f464
1 { lib, python3, fetchPypi }:
3 python3.pkgs.buildPythonApplication rec {
4   pname = "distgen";
5   version = "1.18";
7   src = fetchPypi {
8     inherit pname version;
9     hash = "sha256-lS6OeEaPiK8Pskuoww9KwyNhKnGQ+dHhdPmZn1Igj0Q=";
10   };
12   nativeCheckInputs = with python3.pkgs; [
13     pytest
14     mock
15   ];
17   propagatedBuildInputs = with python3.pkgs; [
18     distro
19     jinja2
20     six
21     pyyaml
22   ];
24   checkPhase = "make test-unit PYTHON=${python3.executable}";
26   meta = with lib; {
27     description = "Templating system/generator for distributions";
28     mainProgram = "dg";
29     license = licenses.gpl2Plus;
30     homepage = "https://distgen.readthedocs.io/";
31     maintainers = with maintainers; [ bachp ];
32   };