From 028adf622f22adecee61371d51e8021239df68dd Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Thu, 29 Nov 2018 17:32:56 +0100 Subject: [PATCH] initial commit --- default.nix | 5 +++++ pkgs/shinto-cli.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 default.nix create mode 100644 pkgs/shinto-cli.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..0979b45 --- /dev/null +++ b/default.nix @@ -0,0 +1,5 @@ +self: super: + +{ + shinto-cli = super.callPackage ./pkgs/shinto-cli { }; +} diff --git a/pkgs/shinto-cli.nix b/pkgs/shinto-cli.nix new file mode 100644 index 0000000..e83c3c7 --- /dev/null +++ b/pkgs/shinto-cli.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, nose +, jinja2 +, pyyaml +}: + +buildPythonPackage rec { + pname = "shinto-cli"; + version = "0.5.0"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "15ccc9mlw12qp5q8sdcfb7559bc4w1j39ch0c95d1n7c6ifffhn1"; + }; + + buildInputs = [ nose ]; + propagatedBuildInputs = [ jinja2 pyyaml ]; + + meta = with stdenv.lib; { + homepage = https://github.com/kolypto/j2cli; + description = "Jinja2 Command-Line Tool"; + license = licenses.bsd3; + longDescription = '' + shinto-cli is a command-line tool for templating in shell-scripts, + leveraging the Jinja2 library. + ''; + maintainers = with maintainers; [ ]; + }; + +}