Skip to content

Commit 29bdac6

Browse files
authored
python312Packages.jaconv + python312Packages.macfsevents: fix data_files conflict (#375046)
2 parents 134bc9d + 11c33d8 commit 29bdac6

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

pkgs/development/python-modules/jaconv/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ buildPythonPackage rec {
2121
hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
2222
};
2323

24-
patches = [ ./use-pytest.patch ];
24+
patches = [
25+
./fix-packaging.patch
26+
./use-pytest.patch
27+
];
2528

2629
build-system = [ setuptools ];
2730

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/setup.py b/setup.py
2+
index 297357b..12b861f 100644
3+
--- a/setup.py
4+
+++ b/setup.py
5+
@@ -39,7 +42,6 @@
6+
'Programming Language :: Python :: 3.10',
7+
'Programming Language :: Python :: 3.11', 'Topic :: Text Processing'
8+
],
9+
- data_files=[('', ['README.rst', 'CHANGES.rst'])],
10+
long_description='%s\n\n%s' %
11+
(open('README.rst', encoding='utf8').read(),
12+
open('CHANGES.rst', encoding='utf8').read()),

pkgs/development/python-modules/macfsevents/default.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5-
CoreFoundation,
6-
CoreServices,
75
}:
86

97
buildPythonPackage rec {
@@ -16,10 +14,7 @@ buildPythonPackage rec {
1614
hash = "sha256-v3KD8dUXdkzNyBlbIWMdu6wcUGuSC/mo6ilWsxJ2Ucs=";
1715
};
1816

19-
buildInputs = [
20-
CoreFoundation
21-
CoreServices
22-
];
17+
patches = [ ./fix-packaging.patch ];
2318

2419
# Some tests fail under nix build directory
2520
doCheck = false;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/setup.py b/setup.py
2+
index d7f9bb0..7707e38 100644
3+
--- a/setup.py
4+
+++ b/setup.py
5+
@@ -21,11 +21,6 @@ def read(fname):
6+
description = "Thread-based interface to file system observation primitives.",
7+
long_description = "\n\n".join((read('README.rst'), read('CHANGES.rst'))),
8+
license = "BSD",
9+
- data_files = [("", [
10+
- "compat.h",
11+
- "LICENSE.txt",
12+
- "CHANGES.rst"
13+
- ])],
14+
author = "Malthe Borch",
15+
author_email = "[email protected]",
16+
url = 'https://github.com/malthe/macfsevents',

pkgs/top-level/python-packages.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8236,9 +8236,7 @@ self: super: with self; {
82368236

82378237
macaroonbakery = callPackage ../development/python-modules/macaroonbakery { };
82388238

8239-
macfsevents = callPackage ../development/python-modules/macfsevents {
8240-
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
8241-
};
8239+
macfsevents = callPackage ../development/python-modules/macfsevents { };
82428240

82438241
macholib = callPackage ../development/python-modules/macholib { };
82448242

0 commit comments

Comments
 (0)