2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:36:16 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
|
|
|
, pyyaml
|
2020-04-02 19:35:09 +00:00
|
|
|
, setuptools
|
2018-10-15 20:36:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "j2cli";
|
2019-06-17 19:04:04 +00:00
|
|
|
version = "0.3.10";
|
2018-10-15 20:36:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-17 19:04:04 +00:00
|
|
|
sha256 = "6f6f643b3fa5c0f72fbe9f07e246f8e138052b9f689e14c7c64d582c59709ae4";
|
2018-10-15 20:36:16 +00:00
|
|
|
};
|
|
|
|
|
2020-04-03 19:21:03 +00:00
|
|
|
doCheck = false; # tests aren't installed thus aren't found, so skip
|
2020-04-02 19:35:09 +00:00
|
|
|
propagatedBuildInputs = [ jinja2 pyyaml setuptools ];
|
2018-10-15 20:36:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-17 19:04:04 +00:00
|
|
|
homepage = "https://github.com/kolypto/j2cli";
|
2018-10-15 20:36:16 +00:00
|
|
|
description = "Jinja2 Command-Line Tool";
|
2019-06-17 19:04:04 +00:00
|
|
|
license = licenses.bsd2;
|
2018-10-15 20:36:16 +00:00
|
|
|
longDescription = ''
|
|
|
|
J2Cli is a command-line tool for templating in shell-scripts,
|
|
|
|
leveraging the Jinja2 library.
|
|
|
|
'';
|
2021-02-05 11:07:19 +00:00
|
|
|
maintainers = with maintainers; [ rushmorem SuperSandro2000 ];
|
2018-10-15 20:36:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|