summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/distgen
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2019-06-21 23:54:57 +0200
committerworldofpeace <worldofpeace@protonmail.ch>2019-07-11 21:54:06 -0400
commit195e30b74a20f5ddd9b50ee27201c10055c992a2 (patch)
tree21e8fec5bbe998d70e75b083e321282ff03ed48b /pkgs/development/tools/distgen
parent9983820e9302d0899c6ce6224d2afa4e0854ca28 (diff)
distgen: init at 1.3
This tool is mainly used in openshift to build source to image containers.
Diffstat (limited to 'pkgs/development/tools/distgen')
-rw-r--r--pkgs/development/tools/distgen/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/distgen/default.nix b/pkgs/development/tools/distgen/default.nix
new file mode 100644
index 000000000000..dd4cf4d8eb1b
--- /dev/null
+++ b/pkgs/development/tools/distgen/default.nix
@@ -0,0 +1,32 @@
+{ lib, python3 }:
+
+python3.pkgs.buildPythonApplication rec {
+ pname = "distgen";
+ version = "1.3";
+
+ src = python3.pkgs.fetchPypi {
+ inherit pname version;
+ sha256 = "03jwy08wgp1lp6208vks1hv9g1f3aj45cml6k99mm3nw1jfnlbbq";
+ };
+
+ checkInputs = 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 ];
+ };
+}