about summary refs log tree commit diff
path: root/pkgs/development/python-modules/html5tagger
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-07-28 01:38:21 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-07-28 12:15:37 +0200
commit0ef17cbd0c83dac24b6aee1e72273d3bab263908 (patch)
tree988cba88bc741914b53e43d6ba1d64e0c62ab013 /pkgs/development/python-modules/html5tagger
parentffaaf0c1960ef368a7ecb806e58f7c10837c02af (diff)
python310Packages.html5tagger: init at 1.3.0
Introduced for sanic upgrade.
Diffstat (limited to 'pkgs/development/python-modules/html5tagger')
-rw-r--r--pkgs/development/python-modules/html5tagger/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/html5tagger/default.nix b/pkgs/development/python-modules/html5tagger/default.nix
new file mode 100644
index 0000000000000..42bc3aa18ad6c
--- /dev/null
+++ b/pkgs/development/python-modules/html5tagger/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, setuptools-scm
+}:
+
+buildPythonPackage rec {
+  pname = "html5tagger";
+  version = "1.3.0";
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "sanic-org";
+    repo = "html5tagger";
+    rev = "v${version}";
+    hash = "sha256-Or0EizZC9FMjTcbgecDvgGB09KNGyxHreSDojgB7ysg=";
+  };
+
+  env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+  nativeBuildInputs = [
+    setuptools-scm
+  ];
+
+  # no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "html5tagger"
+  ];
+
+  meta = with lib; {
+    description = "Create HTML documents from Python";
+    homepage = "https://github.com/sanic-org/html5tagger";
+    license = licenses.unlicense;
+    maintainers = with maintainers; [ ];
+  };
+}