about summary refs log tree commit diff
path: root/pkgs/development/tools/djhtml
diff options
context:
space:
mode:
authorTom Hubrecht <tom@hubrecht.ovh>2023-03-13 16:12:21 +0100
committerTom Hubrecht <tom@hubrecht.ovh>2023-03-24 10:20:24 +0100
commit89fea7c828c79bb822a29bdaa29fb33697641ba6 (patch)
tree07c976750468043d5a0d81ce0a9a814cb984dc8a /pkgs/development/tools/djhtml
parent86dcef07bffd53a29b61b4f8d602370c4020874b (diff)
djhtml: init at 3.0.5
Diffstat (limited to 'pkgs/development/tools/djhtml')
-rw-r--r--pkgs/development/tools/djhtml/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/djhtml/default.nix b/pkgs/development/tools/djhtml/default.nix
new file mode 100644
index 0000000000000..a014c9722f2e6
--- /dev/null
+++ b/pkgs/development/tools/djhtml/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, pythonOlder
+}:
+buildPythonApplication rec {
+  pname = "djhtml";
+  version = "3.0.5";
+
+  format = "setuptools";
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "rtts";
+    repo = pname;
+    rev = version;
+    hash = "sha256-m13lw1x+URAYuDc0gXRIxfRnd6kQxeAuLDqYXeOgQE0=";
+  };
+
+  pythonImportsCheck = [ "djhtml" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/rtts/djhtml";
+    description = "Django/Jinja template indenter";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ thubrecht ];
+  };
+}