Files
nixpkgs/pkgs/development/python-modules/jaconv/default.nix
Peter Kling 06c74dc086 python312Packages.jaconv: do not include unnecessary files
`data_files` installs into Python's installation prefix (not into the directory of the python module), potentially causing collisions if other packages do the same (with such general files).
2025-03-05 09:52:04 +01:00

43 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jaconv";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ikegami-yukino";
repo = "jaconv";
tag = "v${version}";
hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
};
patches = [
./fix-packaging.patch
./use-pytest.patch
];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jaconv" ];
meta = with lib; {
description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku";
homepage = "https://github.com/ikegami-yukino/jaconv";
changelog = "https://github.com/ikegami-yukino/jaconv/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}