NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.37k stars 13.6k forks source link

Enabling pyobjc on python3Packages #101360

Open siraben opened 3 years ago

siraben commented 3 years ago

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

veprbl commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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[bot] commented 3 years ago

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

siraben commented 3 years ago

Still relevant to me.

bergkvist commented 3 years ago

Also relevant to me: https://github.com/jupyterlab/jupyterlab/issues/9863

yaitskov commented 3 years ago

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[bot] commented 2 years ago

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

siraben commented 9 months ago

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

SuperSandro2000 commented 9 months ago

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.

ferrine commented 2 weeks ago

Hey, I have a MWE enabling the build of pyobjc-core https://github.com/NixOS/nixpkgs/pull/336801, is that helpful?

adrian-gierakowski commented 1 day ago

I need this. What can I do to help?

ferrine commented 1 day ago

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