summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pystardict/default.nix
blob: 4938fac38e6b3c7756e380e6ee221438580983a4 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  setuptools-scm,
  six,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pystardict";
  version = "0.8";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "lig";
    repo = "pystardict";
    rev = version;
    hash = "sha256-YrZpIhyxfA3G7rP0SJ+EvzGwAXlne80AYilkj6cIDnA=";
  };

  propagatedBuildInputs = [ six ];

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pystardict" ];

  meta = {
    description = "Library for manipulating StarDict dictionaries from within Python";
    homepage = "https://github.com/lig/pystardict";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ thornycrackers ];
  };
}