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).
This commit is contained in:
Peter Kling
2025-01-09 14:19:11 +01:00
parent 5168db4088
commit 06c74dc086
2 changed files with 16 additions and 1 deletions

View File

@@ -21,7 +21,10 @@ buildPythonPackage rec {
hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
};
patches = [ ./use-pytest.patch ];
patches = [
./fix-packaging.patch
./use-pytest.patch
];
build-system = [ setuptools ];

View File

@@ -0,0 +1,12 @@
diff --git a/setup.py b/setup.py
index 297357b..12b861f 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +42,6 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11', 'Topic :: Text Processing'
],
- data_files=[('', ['README.rst', 'CHANGES.rst'])],
long_description='%s\n\n%s' %
(open('README.rst', encoding='utf8').read(),
open('CHANGES.rst', encoding='utf8').read()),