2018-10-15 20:36:16 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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
|
|
|
|
|
|
|
meta = with stdenv.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.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ rushmorem ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|