about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/cambrinary
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/cambrinary')
-rw-r--r--nixpkgs/pkgs/applications/misc/cambrinary/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/cambrinary/default.nix b/nixpkgs/pkgs/applications/misc/cambrinary/default.nix
new file mode 100644
index 000000000000..1fecfe1c17cb
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/cambrinary/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, flit
+, aiohttp
+, beautifulsoup4
+}:
+
+buildPythonApplication rec {
+  pname = "cambrinary";
+  version = "unstable-2023-07-16";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "xueyuanl";
+    repo = "cambrinary";
+    rev = "f0792ef70654a48a7677b6e1a7dee454b2c0971c";
+    hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE=";
+  };
+
+  nativeBuildInputs = [
+    flit
+  ];
+
+  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 ];
+  };
+}