Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling pyobjc on python3Packages #101360

Closed
siraben opened this issue Oct 22, 2020 · 16 comments · Fixed by #378992
Closed

Enabling pyobjc on python3Packages #101360

siraben opened this issue Oct 22, 2020 · 16 comments · Fixed by #378992
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: python

Comments

@siraben
Copy link
Member

siraben commented Oct 22, 2020

Describe the bug
pyobjc fails to build when the disabled = isPy3k; line is removed and one attempts to build the package for Python 3. Currently, barely any packages in nixpkgs depend on pyobjc but making something like swaglyrics (which is a Python 3 application) buildable on macOS requires pyobjc as a dependency. It would be nice to investigate why the build fails and what can be done.

Snipped build log

Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python3.8-pyobjc-6.2.2.drv-0/pyobjc-6.2.2/dist /private/var/folders/s1/sm71lqk553d1_f8drd3tz_5r0000gn/T/nix-build-python3.8-pyobjc-6.2.2.drv-0/pyobjc-6.2.2
Processing ./pyobjc-6.2.2-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement pyobjc-framework-LinkPresentation==6.2.2; platform_release >= "19.0" (from pyobjc==6.2.2) (from versions: none)
ERROR: No matching distribution found for pyobjc-framework-LinkPresentation==6.2.2; platform_release >= "19.0" (from pyobjc==6.2.2)

To Reproduce
nix-build -A python3Packages.pyobjc

@siraben siraben added the 0.kind: bug Something is broken label Oct 22, 2020
@veprbl veprbl added 6.topic: darwin Running or building packages on Darwin 6.topic: python labels Oct 22, 2020
@veprbl
Copy link
Member

veprbl commented Oct 22, 2020

Looks like the package is very much broken. It is marked with disabled = !isPy3k;, but the already build requires Python 3. Also, I don't think it can be completely built from a pypi fetch unless we package all the frameworks [1] separately. It should be easier to fetch from github and let them all build at once, I suppose.

cc @sauyon as maintainer

[1] https://pypi.org/search/?q=pyobjc-framework&o=

@sauyon
Copy link
Member

sauyon commented Oct 23, 2020

Feel free to make a PR for this, I don't actually use OS X so being maintainer on this is probably a mistake.

@SuperSandro2000
Copy link
Member

Looks like the package is very much broken. It is marked with disabled = !isPy3k;, but the already build requires Python 3. Also, I don't think it can be completely built from a pypi fetch unless we package all the frameworks [1] separately. It should be easier to fetch from github and let them all build at once, I suppose.

cc @sauyon as maintainer

[1] pypi.org/search/?q=pyobjc-framework&o=

Well, to late for that.

@stale
Copy link

stale bot commented Jun 3, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2021
@siraben
Copy link
Member Author

siraben commented Jun 4, 2021

Still relevant to me.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
@bergkvist
Copy link
Member

Also relevant to me: jupyterlab/jupyterlab#9863

@yaitskov
Copy link

Me too. Guys. I am new to python and nix.
I have no clue what is "platform_release"??
Googling give not relevant results. Is it about Mac? Python or Python in Nix?

@stale
Copy link

stale bot commented May 1, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 1, 2022
@siraben
Copy link
Member Author

siraben commented Nov 24, 2023

It would be great to see if we can get this in for ZHF.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 24, 2023
@SuperSandro2000 SuperSandro2000 added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 24, 2023
@SuperSandro2000
Copy link
Member

It is totally out of question that we can get that done until the end of November. This is a major task that requires some planning and probably adds ~50 packages.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 24, 2023
@SuperSandro2000 SuperSandro2000 removed their assignment Nov 24, 2023
@SuperSandro2000 SuperSandro2000 added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 24, 2023
@ferrine
Copy link
Contributor

ferrine commented Aug 25, 2024

Hey, I have a MWE enabling the build of pyobjc-core #336801, is that helpful?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 25, 2024
@adrian-gierakowski
Copy link
Contributor

I need this. What can I do to help?

@ferrine
Copy link
Contributor

ferrine commented Sep 12, 2024

I need this. What can I do to help?

I started working on a PR and got swamped with dayjob, let me do something today. I'll leave comments and mention you

@pwnwriter
Copy link
Member

Any update on this?

@ferrine
Copy link
Contributor

ferrine commented Nov 15, 2024

Not yet, did not find time to come back this week. There was an update recently that makes it easier to build pyobjc, so it is coming soon

@samuela
Copy link
Member

samuela commented Feb 2, 2025

Also necessary to package rumps which is important to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: python
Projects
None yet
10 participants