nixpkgs/pkgs/development/tools/distgen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
688 B
Nix
Raw Normal View History

{ lib, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "distgen";
2020-04-05 12:00:26 +00:00
version = "1.5";
src = python3.pkgs.fetchPypi {
inherit pname version;
2020-04-05 12:00:26 +00:00
sha256 = "08f9rw5irgv0gw7jizk5f9csn0yhrdnb84k40px1zbypsylvr5c5";
};
nativeCheckInputs = with python3.pkgs; [
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";
license = licenses.gpl2Plus;
homepage = "https://distgen.readthedocs.io/";
maintainers = with maintainers; [ bachp ];
};
}