anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / misc / cambrinary / default.nix
blob15bb60d4c3f764af8fa974a94c21a0cc4af4a3fb
1 { lib
2 , buildPythonApplication
3 , fetchFromGitHub
4 , flit
5 , aiohttp
6 , beautifulsoup4
7 }:
9 buildPythonApplication rec {
10   pname = "cambrinary";
11   version = "unstable-2023-07-16";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "xueyuanl";
16     repo = "cambrinary";
17     rev = "f0792ef70654a48a7677b6e1a7dee454b2c0971c";
18     hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE=";
19   };
21   nativeBuildInputs = [
22     flit
23   ];
25   propagatedBuildInputs = [
26     aiohttp
27     beautifulsoup4
28   ];
30   pythonImportsCheck = [ "cambrinary" ];
32   meta = with lib; {
33     description = "Cambridge dictionary in a terminal";
34     mainProgram = "cambrinary";
35     homepage = "https://github.com/xueyuanl/cambrinary";
36     license = licenses.gpl3Only;
37     platforms = platforms.unix;
38     maintainers = with maintainers; [ azahi ];
39   };