From 2e55cb9b289cef71a988fbaf0db4a4c12ee6a7c6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 Jan 2024 12:06:00 +0100 Subject: [PATCH] cansina: init at 0.9 Web Content Discovery Tool https://github.com/deibit/cansina --- pkgs/by-name/ca/cansina/package.nix | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/ca/cansina/package.nix diff --git a/pkgs/by-name/ca/cansina/package.nix b/pkgs/by-name/ca/cansina/package.nix new file mode 100644 index 000000000000..11e8d9fad487 --- /dev/null +++ b/pkgs/by-name/ca/cansina/package.nix @@ -0,0 +1,39 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "cansina"; + version = "0.9"; + pyproject = true; + + src = fetchFromGitHub { + owner = "deibit"; + repo = "cansina"; + rev = "refs/tags/${version}"; + hash = "sha256-vDlYJSRBVFtEdE/1bN8PniFYkpggIKMcEakphHmaTos="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; + + propagatedBuildInputs = with python3.pkgs; [ + asciitree + requests + ]; + + pythonImportsCheck = [ + "cansina" + ]; + + meta = with lib; { + description = "Web Content Discovery Tool"; + homepage = "https://github.com/deibit/cansina"; + changelog = "https://github.com/deibit/cansina/blob/${version}/CHANGELOG.md"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + mainProgram = "cansina"; + }; +}