depot/third_party/nixpkgs/pkgs/development/python-modules/pystardict/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
809 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 ];
};
}