Skip to content

Commit

Permalink
fix(pycairo): fix later versions of pycairo
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 26, 2023
1 parent 8f2c483 commit 973ccb6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
6 changes: 6 additions & 0 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -14247,6 +14247,9 @@
"setuptools",
"setuptools-scm"
],
"pygobject": [
"setuptools"
],
"pygobject-stubs": [
"setuptools"
],
Expand Down Expand Up @@ -16389,6 +16392,9 @@
"python-monkey-business": [
"setuptools"
],
"python-mpd2": [
"setuptools"
],
"python-mpv-jsonipc": [
"setuptools"
],
Expand Down
42 changes: 20 additions & 22 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2122,31 +2122,29 @@ lib.composeManyExtensions [
) else
super.pyarrow;

pycairo = (
drv: (
drv.overridePythonAttrs (
_: {
format = "other";
}
)
).overridePythonAttrs (
old: {
pycairo = super.pycairo.overridePythonAttrs (
old: {
format = "other";
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
self.meson
pkgs.ninja
pkg-config
];

nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [
self.meson
pkgs.ninja
pkg-config
];
propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [
pkgs.cairo
];

propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [
pkgs.cairo
];
preBuild = ''
cd ../
'';

mesonFlags = [ "-Dpython=${if self.isPy3k then "python3" else "python"}" ];
}
)
)
super.pycairo;
postBuild = ''
cd build
'';
mesonFlags = [ "-Dpython=${if self.isPy3k then "python3" else "python"}" ];
}
);

pycocotools = super.pycocotools.overridePythonAttrs (
old: {
Expand Down

0 comments on commit 973ccb6

Please sign in to comment.