2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, flit
|
2023-08-22 20:05:09 +00:00
|
|
|
, aiohttp
|
|
|
|
, beautifulsoup4
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cambrinary";
|
|
|
|
version = "unstable-2023-07-16";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xueyuanl";
|
|
|
|
repo = "cambrinary";
|
|
|
|
rev = "f0792ef70654a48a7677b6e1a7dee454b2c0971c";
|
|
|
|
hash = "sha256-wDcvpKAY/6lBjO5h3qKH3+Y2G2gm7spcKCXFMt/bAtE=";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cambrinary" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cambridge dictionary in a terminal";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cambrinary";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/xueyuanl/cambrinary";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ azahi ];
|
|
|
|
};
|
|
|
|
}
|