-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
quodlibet: 2.6.3 -> 3.9.1 #29404
quodlibet: 2.6.3 -> 3.9.1 #29404
Conversation
99a4b36
to
ceadedd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python packages need some work, meta is missing.
pkgs/top-level/python-packages.nix
Outdated
@@ -5596,6 +5596,15 @@ in { | |||
buildInputs = with self; [ fudge_9 nose ]; | |||
}; | |||
|
|||
faulthandler = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this expression to python-modules/faulthandler/default.nix
.
pkgs/top-level/python-packages.nix
Outdated
faulthandler = buildPythonPackage rec { | ||
name = "faulthandler-${version}"; | ||
version = "2.6"; | ||
src = pkgs.fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchPypi
pkgs/top-level/python-packages.nix
Outdated
@@ -17465,6 +17474,14 @@ in { | |||
}; | |||
}; | |||
|
|||
pyobjc = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python-modules/pyobjc/default/nix
pkgs/top-level/python-packages.nix
Outdated
pyobjc = buildPythonPackage rec { | ||
name = "pyobjc-${version}"; | ||
version = "4.0b1"; | ||
src = pkgs.fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchPypi
468b8b0
to
1b3a523
Compare
The license for quodlibet is stated to be
so I put gpl2. |
|
||
meta = { | ||
description = "A bridge between the Python and Objective-C programming languages"; | ||
license = stdenv.lib.licenses.mit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined variable ‘stdenv’ at /nix/store/9nl1fs575ayk3hk1bjymp03plh84wnrp-quodlibet.tar.gz/pkgs/development/python-modules/pyobjc/default.nix:16:24
Please do test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't, don't have a mac :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually I could've caught that... added licenses after building, whoops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's irrelevant. I got this evaluation error on NixOS. stdenv
is not passed in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, its a common error. Happens to me as well.
Something has gone wrong here with merging/rebasing. We need a single commit per package/expression. |
Yeah, I did the merge on github thinking "this'll be relatively easy to squash" like an idiot |
Do you want me to separate the python packages into their own commits? |
Preferably, yes. |
01f3259
to
2d7f1a9
Compare
@sauyon |
f683cd9
to
30f035d
Compare
pkgs/top-level/python-packages.nix
Outdated
@@ -5512,6 +5512,8 @@ in { | |||
buildInputs = with self; [ fudge_9 nose ]; | |||
}; | |||
|
|||
faulthandler = if ! isPy3k then callPackage ../development/python-modules/faulthandler {} else throw "faulthandler is built into ${python.executable}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is very long, I think it would be clearer as
faulthandler =
if ! isPy3k
then callPackage ../development/python-modules/faulthandler {}
else throw "faulthandler is built into ${python.executable}";
When attempting to build this on my NixOS box I get a problem with pyobjc: rycee@beta:~/devel/nixpkgs$ nix-build -A python2Packages.pyobjc
these derivations will be built:
/nix/store/p7w6vw0a4p7drshch389vsj9w1ggzf2z-python2.7-pyobjc-4.0b1.drv
building path(s) ‘/nix/store/jc240j31v04spa5mv8cq2c1gkn44cr32-python2.7-pyobjc-4.0b1’
unpacking sources
unpacking source archive /nix/store/30yzmj23wqhdgp41h92qs5kjd6s6i00m-pyobjc-4.0b1.tar.gz
source root is pyobjc-4.0b1
setting SOURCE_DATE_EPOCH to timestamp 1503862173 of file pyobjc-4.0b1/setup.cfg
patching sources
configuring
building
ERROR: Requires macOS to install or build
builder for ‘/nix/store/p7w6vw0a4p7drshch389vsj9w1ggzf2z-python2.7-pyobjc-4.0b1.drv’ failed with exit code 1
error: build of ‘/nix/store/p7w6vw0a4p7drshch389vsj9w1ggzf2z-python2.7-pyobjc-4.0b1.drv’ failed
rycee@beta (✗ 100):~/devel/nixpkgs$ |
054bafb
to
b67681b
Compare
I've reformatted and disabled pyobjc for non-darwin (it's only for mac os) |
pkgs/top-level/python-packages.nix
Outdated
then callPackage ../development/python-modules/pyobjc {} | ||
else throw "pyobjc can only be built on Mac OS"; | ||
|
||
pyodbc = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your rebase got mixed up. There is already a
pyodbc = callPackage ../development/python-modules/pyodbc { };
below. This results in an evaluation error:
error: attribute ‘pyodbc’ at /home/rycee/devel/nixpkgs/pkgs/top-level/python-packages.nix:16599:3 already defined at /home/rycee/devel/nixpkgs/pkgs/top-level/python-packages.nix:16579:3
@rycee should be fixed. |
Ok, looks good to me now but you must remove the unrelated "php: fix ldap paths when header exists on host system" commit before a merge can happen. |
@rycee odd, should be fixed. |
Ok, now I could do a nox review and it looks good for me on NixOS. I'm a bit concerned about the error on the mac Travis though: https://travis-ci.org/NixOS/nixpkgs/jobs/297566861#L1081-L1082 Is this something that needs to be resolved? It seems limited to Python 3.6, which quodlibet does not use… |
@rycee it might make sense to disable it for python3, yeah. I don't know anything about it; I don't use a mac and am not the maintainer of the project. EDIT: gone ahead and done so. |
Rebased to master in 7486ae8. Thanks! |
Motivation for this change
Quod Libet 2.6.3 is ancient
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)