Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / distgen / default.nix
blob0a52eecc257928a855affeaa9c5877de2d7ca200
1 { lib, python3, fetchPypi }:
3 python3.pkgs.buildPythonApplication rec {
4   pname = "distgen";
5   version = "1.5";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "08f9rw5irgv0gw7jizk5f9csn0yhrdnb84k40px1zbypsylvr5c5";
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     license = licenses.gpl2Plus;
29     homepage = "https://distgen.readthedocs.io/";
30     maintainers = with maintainers; [ bachp ];
31   };