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:
@@ -21,7 +21,10 @@ buildPythonPackage rec {
|
||||
hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
|
||||
};
|
||||
|
||||
patches = [ ./use-pytest.patch ];
|
||||
patches = [
|
||||
./fix-packaging.patch
|
||||
./use-pytest.patch
|
||||
];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
|
||||
12
pkgs/development/python-modules/jaconv/fix-packaging.patch
Normal file
12
pkgs/development/python-modules/jaconv/fix-packaging.patch
Normal 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()),
|
||||
Reference in New Issue
Block a user