2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "j2cli";
|
|
|
|
version = "0.3.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "6f6f643b3fa5c0f72fbe9f07e246f8e138052b9f689e14c7c64d582c59709ae4";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false; # tests aren't installed thus aren't found, so skip
|
|
|
|
propagatedBuildInputs = [ jinja2 pyyaml setuptools ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kolypto/j2cli";
|
|
|
|
description = "Jinja2 Command-Line Tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "j2";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
longDescription = ''
|
|
|
|
J2Cli is a command-line tool for templating in shell-scripts,
|
|
|
|
leveraging the Jinja2 library.
|
|
|
|
'';
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ rushmorem SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|