e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
37 lines
796 B
Nix
37 lines
796 B
Nix
{ 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 = with lib; {
|
|
description =
|
|
"Library for manipulating StarDict dictionaries from within Python";
|
|
homepage = "https://github.com/lig/pystardict";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ thornycrackers ];
|
|
};
|
|
}
|