Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pystardict / default.nix
blob4e5cbd64e4b62e3630dcae55173137044b995dce
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , setuptools-scm
6 , six
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pystardict";
12   version = "0.8";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "lig";
17     repo = "pystardict";
18     rev = version;
19     hash = "sha256-YrZpIhyxfA3G7rP0SJ+EvzGwAXlne80AYilkj6cIDnA=";
20   };
22   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
24   propagatedBuildInputs = [ six ];
26   nativeBuildInputs = [ setuptools setuptools-scm ];
28   nativeCheckInputs = [ pytestCheckHook ];
30   pythonImportsCheck = [ "pystardict" ];
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   };