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