1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, setuptools-scm
6, six
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "pystardict";
12 version = "0.8";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "lig";
17 repo = "pystardict";
18 rev = version;
19 hash = "sha256-YrZpIhyxfA3G7rP0SJ+EvzGwAXlne80AYilkj6cIDnA=";
20 };
21
22 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
23
24 propagatedBuildInputs = [ six ];
25
26 nativeBuildInputs = [ setuptools setuptools-scm ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "pystardict" ];
31
32 meta = with lib; {
33 description =
34 "Library for manipulating StarDict dictionaries from within Python";
35 homepage = "https://github.com/lig/pystardict";
36 license = licenses.gpl3Plus;
37 maintainers = with maintainers; [ thornycrackers ];
38 };
39}