Skip to content

Update my packages#38456

Closed
matthiasbeyer wants to merge 15 commits intoNixOS:masterfrom
matthiasbeyer:update-my-packages
Closed

Update my packages#38456
matthiasbeyer wants to merge 15 commits intoNixOS:masterfrom
matthiasbeyer:update-my-packages

Conversation

@matthiasbeyer
Copy link
Contributor

Motivation for this change

Update packages I maintain.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@matthiasbeyer matthiasbeyer requested a review from FRidh as a code owner April 5, 2018 10:24
@matthiasbeyer
Copy link
Contributor Author

@GrahamcOfBorg build pythonPackages.atomicwrites
@GrahamcOfBorg build pythonPackages.Babel
@GrahamcOfBorg build fava

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.atomicwrites

Partial log (click to expand)

no previously-included directories found matching 'docs/_build'
writing manifest file 'atomicwrites.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s


OK
/nix/store/wrj2n2xqmxf4ym6lfi0ijjpynmf2fsx3-python2.7-atomicwrites-1.1.5

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: pythonPackages.atomicwrites

Partial log (click to expand)

reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
writing manifest file 'atomicwrites.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/abv44yjdlmrwsswa6bjq3n9n5sp9jwdy-python2.7-atomicwrites-1.1.5

@matthiasbeyer
Copy link
Contributor Author

The uritemplate packages update was reverted because it broke fava. Shall I rewrite the revert commit to be hold more explanation?

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pythonPackages.atomicwrites

Partial log (click to expand)

reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
writing manifest file 'atomicwrites.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/cpw2qgfwpf02mr3k6dacb8il0c3q0fg4-python2.7-atomicwrites-1.1.5

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.Babel

Partial log (click to expand)

Ran 248 tests in 1.496s

OK
ine 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: msg has more translations than num_plurals of catalog
WARNING: Problem on line 28:

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pythonPackages.Babel

Partial log (click to expand)


OK
 on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
/nix/store/xxnwg26bx2fk1zdb9yqc45wz87za4svh-python2.7-Babel-2.5.3

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: pythonPackages.Babel

Partial log (click to expand)

WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: Start of line didn't match any expected keyword.
WARNING: Problem on line 1: \
WARNING: msg has more translations than num_plurals of catalog
WARNING: Problem on line 28:

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: fava

Partial log (click to expand)

Successfully installed fava-1.7
/build/fava-1.7
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7/lib  /nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7/bin
patching script interpreter paths in /nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7
checking for references to /build in /nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7...
wrapping `/nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7/bin/fava'...
/nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: fava

Partial log (click to expand)

Requirement already satisfied: rsa>=3.1.4 in /nix/store/5ab8bfhc0ydylqn2cpb0016yqkz46jz2-python3.6-rsa-3.4.2/lib/python3.6/site-packages (from oauth2client->google-api-python-client->beancount>=2.0b15->fava==1.7)
Installing collected packages: fava
Successfully installed fava-1.7
/private/tmp/nix-build-fava-1.7.drv-0/fava-1.7
post-installation fixup
strip is /nix/store/0fzpxnsanc02i4jsb1yhchjp4p62b2n3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7/lib  /nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7/bin
patching script interpreter paths in /nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7
wrapping `/nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7/bin/fava'...
/nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: fava

Partial log (click to expand)

Installing collected packages: fava
Successfully installed fava-1.7
/tmp/nix-build-fava-1.7.drv-0/fava-1.7
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7/lib  /nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7/bin
patching script interpreter paths in /nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7
checking for references to /tmp/nix-build-fava-1.7.drv-0 in /nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7...
wrapping `/nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7/bin/fava'...

@GrahamcOfBorg GrahamcOfBorg added 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. labels Apr 5, 2018
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: fava

Partial log (click to expand)

/nix/store/bwmyrpw7qzkg343g7i6nnqjqvaksz81b-fava-1.7

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: fava

Partial log (click to expand)

/nix/store/nxfwq68l6by4yj7zp9jkb10plzq1dpck-fava-1.7

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: fava

Partial log (click to expand)

/nix/store/7kh7365f7y7zk6y285pmjvz7bjy4ar9w-fava-1.7

pname = "fava";
version = "1.6";
version = "1.7";
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line isn't needed.


atomicwrites = buildPythonPackage rec {
version = "0.1.9";
version = "1.1.5";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As atomicwrites was moved to a dedicated directory in #38439, it probably makes sense to rebase on staging.


Babel = buildPythonPackage (rec {
name = "Babel-2.3.4";
name = "Babel-2.5.3";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use pname and version instead.

name = "Babel-2.3.4";
name = "Babel-2.5.3";

src = pkgs.fetchurl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchPypi

@@ -12381,14 +12381,14 @@ in {
pygit2 = callPackage ../development/python-modules/pygit2 { };

Babel = buildPythonPackage (rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if you could move this expression to pkgs/development/python-modules/Babel/default.nix.

@@ -16722,11 +16722,11 @@ in {

uritemplate = buildPythonPackage rec {
name = "uritemplate-${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use pname = "uritemplate" instead.

version = "0.6";
version = "3.0.0";

src = pkgs.fetchurl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchPypi

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of reverting the uritemplate bump, you should override the version that fava uses. Have a look at e.g. https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/home-assistant/appdaemon.nix.

@matthiasbeyer
Copy link
Contributor Author

It seems the nix community develops new schemes of overriding dependencies every other month. Either way, here's the updates I was able to do. Unfortunately, fava does not build now, it cannot find uritemplate.

@@ -16721,12 +16703,12 @@ in {
update_checker = callPackage ../development/python-modules/update_checker {};

uritemplate = buildPythonPackage rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should best be moved to its own file as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe its done on staging?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I just checked again.

@dotlambda
Copy link
Member

There are several problems with the current situation:

@dotlambda
Copy link
Member

@matthiasbeyer If you feel like that's too much work, I can do it. Just let me know.

@matthiasbeyer
Copy link
Contributor Author

@dotlambda that'd be awesome!

@FRidh
Copy link
Member

FRidh commented Apr 5, 2018

This will conflict with #38483.

@dotlambda
Copy link
Member

All changes should be included in #38483.

@dotlambda dotlambda closed this Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants