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

Fix/tryton update #40606

Merged
merged 5 commits into from May 19, 2018
Merged

Fix/tryton update #40606

merged 5 commits into from May 19, 2018

Conversation

udono
Copy link
Contributor

@udono udono commented May 16, 2018

Motivation for this change

Update Tryton client (tryton) and server (trytond) package to new upstream release 4.8 last maintained by @johbo .
Add all extra dependencies.

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"
    used instead nox-review pr 40606
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

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.

Please prefix the messages of the appropriate two commits with pythonPackages.

@@ -0,0 +1,29 @@
{ stdenv, python2Packages, pkgconfig, gobjectIntrospection, gtk3, goocanvas2 }:
Copy link
Member

Choose a reason for hiding this comment

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

For python packages, please don't pass pythonPackages as argument, but fetchPypi, pygtk, ...

If this is Python 2 only, you need to add disabled = isPy3k.

@@ -0,0 +1,21 @@
{ stdenv, fetchurl, python2Packages, pkgconfig }:
Copy link
Member

Choose a reason for hiding this comment

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

no python2Packages here as well.

version = "2.3";

src = fetchurl {
url="http://www.bytereef.org/software/mpdecimal/releases/${pname}-${version}.tar.gz";
Copy link
Member

Choose a reason for hiding this comment

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

Is this not available from PyPI?

description = "A calendar widget for GTK using PyGoocanvas.";
homepage = https://goocalendar.tryton.org/;
license = licenses.gpl2;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

Drop this line, platforms is set automatically.

description = "A fast drop-in replacement for decimal.py.";
homepage = http://www.bytereef.org/mpdecimal/;
license = licenses.bsd2;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

Drop this line.

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.goocalendar python2.pkgs.cdecimal

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.goocalendar, python2.pkgs.cdecimal

Partial log (click to expand)

gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DCONFIG_64=1 -DASM=1 -UNDEBUG -I/nix/store/l9j2jsc9flrbmpf799nw9wdq59gpwms8-python-2.7.14/include/python2.7 -c cdecimal2.c -o build/temp.linux-x86_64-2.7/cdecimal2.o
gcc -pthread -shared -lgcc_s build/temp.linux-x86_64-2.7/basearith.o build/temp.linux-x86_64-2.7/constants.o build/temp.linux-x86_64-2.7/context.o build/temp.linux-x86_64-2.7/convolute.o build/temp.linux-x86_64-2.7/crt.o build/temp.linux-x86_64-2.7/difradix2.o build/temp.linux-x86_64-2.7/fnt.o build/temp.linux-x86_64-2.7/fourstep.o build/temp.linux-x86_64-2.7/io.o build/temp.linux-x86_64-2.7/memory.o build/temp.linux-x86_64-2.7/mpdecimal.o build/temp.linux-x86_64-2.7/numbertheory.o build/temp.linux-x86_64-2.7/sixstep.o build/temp.linux-x86_64-2.7/transpose.o build/temp.linux-x86_64-2.7/cdecimal2.o -L/nix/store/l9j2jsc9flrbmpf799nw9wdq59gpwms8-python-2.7.14/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/cdecimal.so
copying build/lib.linux-x86_64-2.7/cdecimal.so ->

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

OK
/nix/store/b04bnya3g59cm8dkhzzq5dzk4yy2m28h-python2.7-GooCalendar-0.3
/nix/store/hbjxvvb1iq32wrsrgp79530cknr24741-python2.7-cdecimal-2.3

@dotlambda
Copy link
Member

Ran 0 tests in 0.000s

You need to specify an appropriate checkPhase. If there are no tests, please set doCheck = false and add a comment on why they are disabled.

@dotlambda
Copy link
Member

Please create a seperate commit adding yourself as a maintainer.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python2.pkgs.goocalendar, python2.pkgs.cdecimal

Partial log (click to expand)

reading manifest template 'MANIFEST.in'
writing manifest file 'GooCalendar.egg-info/SOURCES.txt'
running build_ext

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

OK
/nix/store/kkgh5y129v6jmbjfpb1i21r5f7mvxddc-python2.7-GooCalendar-0.3
/nix/store/qavqwqknbhln5lpdfsqqfz7abp2g0hyn-python2.7-cdecimal-2.3

udono added 5 commits May 18, 2018 17:17
Major upstream release.
Use GTK-3.
Use extras-depends: cdecimal, goocalendar
Major upstream release.
Use extras-depends: cdecimal html2text ipaddress
@udono
Copy link
Contributor Author

udono commented May 18, 2018

@dotlambda: Thank you for reviewing! I think I changed everything you requested.

@dotlambda
Copy link
Member

cc @johbo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants