Skip to content

Commit ce0da5f

Browse files
committed
use pyobjc-framework-Quartz in nixpkgs
1 parent 6a99aa2 commit ce0da5f

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

plover.nix

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@
3131

3232
# darwin
3333
appnope,
34-
darwin,
3534
pyobjc-core,
3635
pyobjc-framework-Cocoa,
37-
# pyobjc-framework-Quartz, # when nixpkgs got it
36+
pyobjc-framework-Quartz,
3837
}:
3938
let
4039
plover-stroke = buildPythonPackage {
@@ -44,42 +43,6 @@ let
4443
pyproject = true;
4544
build-system = [ setuptools ];
4645
};
47-
pyobjc-framework-Quartz = buildPythonPackage {
48-
pname = "pyobjc-framework-Quartz";
49-
version = "11.0";
50-
src = inputs.pyobjc;
51-
pyproject = true;
52-
build-system = [ setuptools ];
53-
sourceRoot = "source/pyobjc-framework-Quartz";
54-
55-
buildInputs = [
56-
darwin.libffi
57-
];
58-
59-
nativeBuildInputs = [
60-
darwin.DarwinTools # sw_vers
61-
];
62-
63-
dependencies = [
64-
pyobjc-core
65-
pyobjc-framework-Cocoa
66-
];
67-
68-
postPatch = ''
69-
substituteInPlace pyobjc_setup.py \
70-
--replace-fail "-buildversion" "-buildVersion" \
71-
--replace-fail "-productversion" "-productVersion" \
72-
--replace-fail "/usr/bin/sw_vers" "sw_vers" \
73-
--replace-fail "/usr/bin/xcrun" "xcrun"
74-
'';
75-
76-
env.NIX_CFLAGS_COMPILE = toString [
77-
"-I${darwin.libffi.dev}/include"
78-
"-Wno-error=unused-command-line-argument"
79-
];
80-
81-
pythonImportsCheck = [ "Quartz" ];
82-
};
8346
rtf-tokenize = buildPythonPackage {
8447
pname = "rtf_tokenize";
8548
version = "master";

0 commit comments

Comments
 (0)