Last active
April 18, 2022 04:55
-
-
Save abathur/d79043649d9b182f97f076892fae2e39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dr-xr-xr-x - abathur 31 Dec 1969 /nix/store/p0876isrv4gi1pbfkc6bms737grzwjlj-python3.8-j2cli-0.3.10 | |
dr-xr-xr-x - abathur 31 Dec 1969 ├── bin | |
.r-xr-xr-x 964 abathur 31 Dec 1969 │ ├── .j2-wrapped | |
.r-xr-xr-x 371 abathur 31 Dec 1969 │ └── j2 | |
dr-xr-xr-x - abathur 31 Dec 1969 ├── lib | |
dr-xr-xr-x - abathur 31 Dec 1969 │ └── python3.8 | |
dr-xr-xr-x - abathur 31 Dec 1969 │ └── site-packages | |
dr-xr-xr-x - abathur 31 Dec 1969 │ ├── j2cli | |
.r--r--r-- 261 abathur 31 Dec 1969 │ │ ├── __init__.py | |
dr-xr-xr-x - abathur 31 Dec 1969 │ │ ├── __pycache__ | |
.r--r--r-- 469 abathur 31 Dec 1969 │ │ │ ├── __init__.cpython-38.pyc | |
.r--r--r-- 7.1k abathur 31 Dec 1969 │ │ │ ├── cli.cpython-38.pyc | |
.r--r--r-- 4.3k abathur 31 Dec 1969 │ │ │ └── context.cpython-38.pyc | |
.r--r--r-- 7.0k abathur 31 Dec 1969 │ │ ├── cli.py | |
.r--r--r-- 4.3k abathur 31 Dec 1969 │ │ ├── context.py | |
dr-xr-xr-x - abathur 31 Dec 1969 │ │ └── extras | |
.r--r--r-- 22 abathur 31 Dec 1969 │ │ ├── __init__.py | |
dr-xr-xr-x - abathur 31 Dec 1969 │ │ ├── __pycache__ | |
.r--r--r-- 242 abathur 31 Dec 1969 │ │ │ ├── __init__.cpython-38.pyc | |
.r--r--r-- 1.8k abathur 31 Dec 1969 │ │ │ ├── customize.cpython-38.pyc | |
.r--r--r-- 2.2k abathur 31 Dec 1969 │ │ │ └── filters.cpython-38.pyc | |
.r--r--r-- 980 abathur 31 Dec 1969 │ │ ├── customize.py | |
.r--r--r-- 2.1k abathur 31 Dec 1969 │ │ └── filters.py | |
dr-xr-xr-x - abathur 31 Dec 1969 │ └── j2cli-0.3.10.dist-info | |
.r--r--r-- 141 abathur 31 Dec 1969 │ ├── direct_url.json | |
.r--r--r-- 35 abathur 31 Dec 1969 │ ├── entry_points.txt | |
.r--r--r-- 4 abathur 31 Dec 1969 │ ├── INSTALLER | |
.r--r--r-- 1.3k abathur 31 Dec 1969 │ ├── LICENSE | |
.r--r--r-- 1.3k abathur 31 Dec 1969 │ ├── METADATA | |
.r--r--r-- 1.6k abathur 31 Dec 1969 │ ├── RECORD | |
.r--r--r-- 0 abathur 31 Dec 1969 │ ├── REQUESTED | |
.r--r--r-- 6 abathur 31 Dec 1969 │ ├── top_level.txt | |
.r--r--r-- 110 abathur 31 Dec 1969 │ └── WHEEL | |
dr-xr-xr-x - abathur 31 Dec 1969 └── nix-support | |
.r--r--r-- 265 abathur 31 Dec 1969 └── propagated-build-inputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /nix/store/pcjan45rssdn01cxx3sjg70avjg6c3ni-bash-4.4-p23/bin/bash -e | |
export PATH='/nix/store/p6k14ihyfaq3z4sycxr09cvgpis2zjd5-python3-3.8.9/bin:/nix/store/p0876isrv4gi1pbfkc6bms737grzwjlj-python3.8-j2cli-0.3.10/bin'${PATH:+':'}$PATH | |
export PYTHONNOUSERSITE='true' | |
exec -a "$0" "/nix/store/p0876isrv4gi1pbfkc6bms737grzwjlj-python3.8-j2cli-0.3.10/bin/.j2-wrapped" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/nix/store/p6k14ihyfaq3z4sycxr09cvgpis2zjd5-python3-3.8.9/bin/python3.8 | |
# -*- coding: utf-8 -*- | |
import sys;import site;import functools;sys.argv[0] = '/nix/store/p0876isrv4gi1pbfkc6bms737grzwjlj-python3.8-j2cli-0.3.10/bin/j2';functools.reduce(lambda k, p: site.addsitedir(p, k), ['/nix/store/p0876isrv4gi1pbfkc6bms737grzwjlj-python3.8-j2cli-0.3.10/lib/python3.8/site-packages','/nix/store/30r4qr29lx510a5fg76g4y4n30nr4jib-python3.8-Jinja2-2.11.3/lib/python3.8/site-packages','/nix/store/hr6l066m6mcmlbfciibvzrg9x5bxrli9-python3.8-MarkupSafe-1.1.1/lib/python3.8/site-packages','/nix/store/h9832pvm0airim7nfc5n7xvqqb7hzl24-python3.8-setuptools-54.2.0/lib/python3.8/site-packages','/nix/store/m5c9aaqbj3x4qmx6l7am6ml4lcf9d3iq-python3.8-PyYAML-5.4.1/lib/python3.8/site-packages'], site._init_pathinfo()); | |
import re | |
import sys | |
from j2cli import main | |
if __name__ == '__main__': | |
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | |
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib | |
, buildPythonPackage | |
, fetchPypi | |
, jinja2 | |
, pyyaml | |
, setuptools | |
}: | |
buildPythonPackage rec { | |
pname = "j2cli"; | |
version = "0.3.10"; | |
src = fetchPypi { | |
inherit pname version; | |
sha256 = "6f6f643b3fa5c0f72fbe9f07e246f8e138052b9f689e14c7c64d582c59709ae4"; | |
}; | |
doCheck = false; # tests aren't installed thus aren't found, so skip | |
propagatedBuildInputs = [ jinja2 pyyaml setuptools ]; | |
meta = with lib; { | |
homepage = "https://github.com/kolypto/j2cli"; | |
description = "Jinja2 Command-Line Tool"; | |
license = licenses.bsd2; | |
longDescription = '' | |
J2Cli is a command-line tool for templating in shell-scripts, | |
leveraging the Jinja2 library. | |
''; | |
maintainers = with maintainers; [ rushmorem SuperSandro2000 ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment