From 1d9cc8e414472fa47f969a4578ab02c70acce0ed Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 20 Aug 2023 23:52:57 +0300 Subject: [PATCH] cambrinary: init at unstable-2023-07-16 --- pkgs/applications/misc/cambrinary/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/misc/cambrinary/default.nix diff --git a/pkgs/applications/misc/cambrinary/default.nix b/pkgs/applications/misc/cambrinary/default.nix new file mode 100644 index 000000000000..67e325cbce02 --- /dev/null +++ b/pkgs/applications/misc/cambrinary/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonApplication +, fetchFromGitHub +, aiohttp +, beautifulsoup4 +}: + +buildPythonApplication rec { + pname = "cambrinary"; + version = "unstable-2023-07-16"; + format = "flit"; + + src = fetchFromGitHub { + owner = "xueyuanl"; + repo = "cambrinary"; + rev = "f0792ef70654a48a7677b6e1a7dee454b2c0971c"; + hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE="; + }; + + propagatedBuildInputs = [ + aiohttp + beautifulsoup4 + ]; + + pythonImportsCheck = [ "cambrinary" ]; + + meta = with lib; { + description = "Cambridge dictionary in a terminal"; + homepage = "https://github.com/xueyuanl/cambrinary"; + license = licenses.gpl3Only; + platforms = platforms.unix; + maintainers = with maintainers; [ azahi ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c89e688e2db6..fcc8b29fcc10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4757,6 +4757,8 @@ with pkgs; cambalache = callPackage ../development/tools/cambalache { }; + cambrinary = python3Packages.callPackage ../applications/misc/cambrinary { }; + changedetection-io = callPackage ../servers/web-apps/changedetection-io { }; clini = callPackage ../tools/misc/clini { };