From 3442181eb98862d04ca2a7747616784d08564413 Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Wed, 22 Jan 2025 22:39:11 +0200 Subject: [PATCH] python3Packages.strip-tags: Init at 0.5.1 --- pkgs/by-name/st/strip-tags/package.nix | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/st/strip-tags/package.nix diff --git a/pkgs/by-name/st/strip-tags/package.nix b/pkgs/by-name/st/strip-tags/package.nix new file mode 100644 index 000000000000..112e69f5f5fa --- /dev/null +++ b/pkgs/by-name/st/strip-tags/package.nix @@ -0,0 +1,45 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + versionCheckHook, +}: + +python3Packages.buildPythonApplication rec { + pname = "strip-tags"; + version = "0.5.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "strip-tags"; + tag = version; + hash = "sha256-Oy4xii668Y37gWJlXtF0LgU+r5seZX6l2SjlqLKzaSU="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + beautifulsoup4 + click + html5lib + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + pyyaml + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + + meta = { + description = "CLI tool for stripping tags from HTML"; + homepage = "https://github.com/simonw/strip-tags"; + changelog = "https://github.com/simonw/strip-tags/releases/tag/${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ erethon ]; + mainProgram = "strip-tags"; + }; +}