blob: dc92a43f152d5e098b01603d0cef01645e478a51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
beautifulsoup4,
buildPythonPackage,
crayons,
fetchFromGitHub,
poetry-core,
pyxdg,
pyyaml,
requests,
setuptools,
pytestCheckHook,
}:
let
finalAttrs = {
pname = "duden";
version = "0.19.2";
pyproject = true;
src = fetchFromGitHub {
owner = "radomirbosak";
repo = "duden";
tag = finalAttrs.version;
hash = "sha256-wjFIlwd4qG6aG9w0VPus6BGqghwIlPC6a8m0eagvIYM=";
};
build-system = [ poetry-core ];
dependencies = [
beautifulsoup4
crayons
pyxdg
pyyaml
requests
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
"tests/test_online_attributes.py"
];
pythonImportsCheck = [ "duden" ];
meta = {
homepage = "https://github.com/radomirbosak/duden";
changelog = "https://github.com/radomirbosak/duden/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "CLI for https://duden.de dictionary written in Python";
longDescription = ''
duden is a CLI-based program and python module, which can provide
various information about given german word. The provided data are
parsed from german dictionary duden.de.
'';
license = with lib.licenses; [ mit ];
mainProgram = "duden";
maintainers = with lib.maintainers; [
linuxissuper
];
};
};
in
buildPythonPackage finalAttrs
|