Commit Graph

7652 Commits

Author SHA1 Message Date
xeji
a292829e58
Merge pull request #50491 from oxij/pkgs/tiny-fixes
trivial: random fixes
2018-11-18 16:58:55 +01:00
Jan Malakhovski
ac09051cf5 pythonPackages.gpgme: inherit python
else building via e.g. `python3Packages.gpgme` produces the wrong result.
2018-11-18 09:08:06 +00:00
Jörg Thalheim
31adf33217
Merge pull request #50473 from Ma27/package-python-nose-cov
pythonPackages.nose-cov: init at 1.6
2018-11-17 11:55:19 +00:00
Austin Seipp
6054dabc11 foundationdb: rework python bindings, build system
FoundationDB uses Python at build time for some code generation.
However, it also has the official python bindings inside the source code
too, and the code for the Python bindings has some of it auto-generated
at compile time.

This made building python packages unattractive: we want to use the
source code generated from the FoundationDB build, but we don't want to
rebuild it. Previously we would override the 'python' input to the
FoundationDB module, but this meant we would do a complete rebuild, as
it was a necessary build time dependency, even though the resulting
generated code itself would not change. Furthermore, FoundationDB
versions < 6.0 don't properly support Python 3 *for the build system*,
though the bindings supported it, so that caused build failures. But the
first effect is the worst: it meant building separate python2 and
python3 packages implied two complete rebuilds of a single FoundationDB
version. This meant rather than 3 FDB builds, we'd do 3*N where N = the
number of major Python versions we support.

Finally, because we did not use pip to generate a wheel that we install
with metadata recorded for the installation, the FoundationDB python
package couldn't be used as an input to other setup.py-based packages:
there would be no recorded metadata in the dist-info folder which would
say this is the foundationdb package. This greatly limits its utility.

To fix all this, we do a few things:

  - Apply some patches to fix the build system with Python 3.x for
    older FoundationDB versions. (This is nice if end-users have
    overridden the global Python version for some reason.)
  - Move python directly into nativeBuildInputs, so it is only a
    build time dependency.
  - Take the python source code from the ./bindings directory and
    tar it up use later after the build is done, so we get to keep
    the generated code. This is the new 'pythonsrc' output from the
    build. This code doesn't change based on whether or not the input
    or resulting package is using Python 2 or 3, it's totally
    deterministic.
  - The build system also patches up the python source code a little,
    so it can be installed directly with setup.py (it needs a little
    stuff that it normally expects the build system to do.)
  - Rework the python package to a separate file that uses
    buildPythonPackage directly. Because the source code is already
    prepared, it needs almost nothing else. Furthermore, this kills
    the override itself for the foundationdb package, meaning rebuilds
    are no longer needed.
  - This package is very simple and just uses foundationdb.pythonsrc
    as its source input. It also ensures a link to libfdb_c.so can
    be found by ctypes (using substituteInPlace)
  - python-packages.nix now just uses callPackage directly.

The net effect of this is, most importantly, that python packages do not
imply a full rebuild of the server source code: building python2 and
python3 packages from a version of FoundationDB now does not need to
override the foundationdb python input, reducing the number of needless
builds. They instead just run setup.py with the given version as input.

The second biggest effect is that wheel metadata is recorded correctly,
meaning dependent-python-packages that want to use the FoundationDB
bindings e.g. from PyPi should now work fine with buildPythonPackage.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-11-16 20:34:19 -06:00
Maximilian Bosch
c59c9a3737
pythonPackages.nose-cov: init at 1.6
Module for coverage reports with Python using nosetests.
2018-11-16 21:41:06 +01:00
Sebastien Maret
bc64d58866 astroquery: init at 0.3.8 (#50360)
Co-Authored-By: smaret <sebastien.maret@icloud.com>
2018-11-15 23:11:41 +00:00
markuskowa
2823b5e698
Merge pull request #46667 from costrouc/costrouc/lammps-update
lammps: update, hoomd-blue, dl_poly: init
2018-11-13 21:00:02 +01:00
Robert Schütz
66ba870c7f
Merge pull request #50274 from peterhoeg/f/ha
home-assistant: add support for waze, bluetooth tracker and  IFTTT
2018-11-13 14:31:40 +01:00
Peter Hoeg
d7691e0c0b pythonPackages.bt_proximity: init at 0.0.20180217 2018-11-13 10:49:13 +08:00
Chris Ostrouchov
c618667bd3 pythonPackages.ovito: init at 3.0.0 2018-11-12 20:06:02 +01:00
Peter Hoeg
4bdd7496ba pythonPackages.WazeRouteCalculator: init 0.6 2018-11-12 21:49:02 +08:00
Peter Hoeg
ff795bd45f pythonPackages.pyfttt: init at 0.3.2 2018-11-12 20:55:33 +08:00
Robert Schütz
b9494ac352
Merge pull request #50166 from dotlambda/home-assistant-0.82
home-assistant: 0.81.5 -> 0.82.0
2018-11-12 11:37:06 +01:00
Jörg Thalheim
92c478babd
Merge pull request #50176 from Mic92/docker-componse
docker-compose: rename from docker_compose, python3 by default
2018-11-12 10:14:53 +00:00
Robert Schütz
92148ea5a0 python3.pkgs.homeassistant-pyozw: init at 0.1.0 2018-11-12 11:10:12 +01:00
Chris Ostrouchov
484a5c6152 pythonPackages.ruamel_yaml: refactor move to python-modules 2018-11-12 11:10:02 +01:00
Robert Schütz
b230ad0e29 python.pkgs.protobuf3_1: drop
Using the specific version of protobuf can be achieved by a simple
`python.pkgs.protobuf.override { protobuf = protobuf3_1; }`.
2018-11-12 11:10:02 +01:00
Samuel Dionne-Riel
242282d92d
Merge pull request #47887 from mmlb/python-dpath
pythonPackages.dpath: init at 1.4.2
2018-11-12 03:51:56 +00:00
Samuel Dionne-Riel
d746c53e2e
Merge pull request #46845 from Twey/plyplus
python2Packages.plyplus: init at 0.7.5
2018-11-12 03:31:26 +00:00
Jörg Thalheim
7a86bc32cb
docker-compose: rename from docker_compose, python3 by default
The command is called docker-compose hence the package should be called the same.
Also prefer python3.
2018-11-11 11:16:44 +00:00
Sebastien Maret
880fae6a08 matplotlib: 2.2.3 -> 3.0.2
Python 3 will use the new matplotlib 3.x while Python 2
will use 2.x.

matplotlib: keep 2.2.3 for Python2k
2018-11-11 10:14:25 +01:00
Frederik Rietdijk
961180afc8 scour: call via python-packages.nix 2018-11-11 09:54:28 +01:00
Jethro Kuan
baeb8bd5a7 gin-config: init 2018-11-11 08:39:19 +01:00
Maximilian Bosch
fbc02d6ce4
Merge pull request #49853 from marsam/feature/update-pgcli
pythonPackages.prompt_toolkit: init at 2.0.7
pgcli: 1.11.0 -> 2.0.0
xonsh: 0.6.8 -> 0.8.3
pythonPackages.ptpython: 0.41 -> 2.0.4
2018-11-11 00:39:38 +01:00
Mario Rodas
e15ef48c80
pythonPackages.ptpython: 0.41 -> 2.0.4 2018-11-10 23:45:52 +01:00
Jörg Thalheim
0c9b49dfe2
Merge pull request #49841 from makefu/pkgs/hovercraft/update
hovercraft: 2.0 -> 2.6
2018-11-10 21:37:53 +00:00
Mario Rodas
0270dda6b4 pythonPackages.prompt_toolkit: init at 2.0.7 2018-11-10 10:06:56 -05:00
Silvan Mosberger
d5c5c5c4d1
Merge pull request #49827 from Twey/click-repl
pythonPackages.click-repl: init at 0.1.6
2018-11-10 15:03:48 +01:00
Sander van der Burg
1ac07c82e1 alerta: init at 6.3.2 2018-11-08 22:32:31 +01:00
James Kay
c3668db824
python2Packages.plyplus: init at 0.7.5 2018-11-07 17:56:52 +00:00
Maximilian Bosch
8c68a7d41d
Merge pull request #49828 from Twey/autologging
pythonPackages.autologging: init at 1.2.1
2018-11-07 17:30:17 +01:00
James Kay
a7c122bd65
pythonPackages.click-repl: init at 0.1.6 2018-11-07 15:29:04 +00:00
James Kay
5fdbec1417
pythonPackages.autologging: init at 1.2.1 2018-11-07 15:28:06 +00:00
makefu
75f5fbe945
hovercraft: 2.0 -> 2.6
move to top-level, use buildPythonApplication
2018-11-07 16:25:48 +01:00
Robert Schütz
ae50efe353
Merge pull request #49591 from peterhoeg/p/snap
pythonPackages.snapcast: init at 2.0.9
2018-11-07 14:10:35 +01:00
Lancelot SIX
1aed180d73
Merge pull request #48914 from lsix/add_pythonPackages_owslib
pythonPackages.owslib: init at 0.17.0
2018-11-06 15:37:53 +01:00
Peter Hoeg
dfbf6213b4 pythonPackages.snapcast: init at 2.0.9 2018-11-05 20:45:08 +08:00
Robert Schütz
6a73df797c
Merge pull request #49744 from nyanloutre/python-gitlab
pythonPackages.python-gitlab: init at 1.6.0
2018-11-04 18:38:21 +01:00
Jonathan Queiroz
05f368b60a pythonPackages.sslib: init at 0.2.0 (#47985) 2018-11-04 15:00:21 +01:00
nyanloutre
2e49503dfe pythonPackages.python-gitlab: init at 1.6.0 2018-11-04 12:47:46 +01:00
nyanloutre
1ee4c64511 pythonPackages.httmock: init at 1.2.6 2018-11-04 12:47:22 +01:00
Jonathan Queiroz
4b095c6c05 pythonPackages.fastpbkdf2: init at 0.2 (#47988) 2018-11-03 15:41:16 +01:00
Robert Schütz
4870522f87
Merge pull request #49645 from peterhoeg/p/broadlink
pythonPackages.broadlink: init at 0.9
2018-11-03 15:37:02 +01:00
Robert Helgesson
2db8372554
pythonPackages.PyICU: 2.0.3 -> 2.2 2018-11-02 23:19:18 +01:00
Peter Hoeg
1ccafe56f9 pythonPackages.broadlink: init at 0.9 2018-11-02 18:12:07 +08:00
Edmund Wu
b3bff5c249 pythonPackages.trueskill: init at 0.4.5 (#49342) 2018-11-01 10:56:56 +01:00
Edmund Wu
0111c7d851 pythonPackages.zstd: init at 1.3.5.1 (#49339) 2018-11-01 10:41:28 +01:00
Robert Schütz
f6107effa4
Merge pull request #49158 from alyssais/doh-proxy
doh-proxy: init at 0.0.8
2018-10-31 23:16:03 +01:00
Frederik Rietdijk
8db4814e8e
Merge pull request #49476 from Synthetica9/cuda-update
cudatoolkit, cudnn: many updates
2018-10-31 19:26:41 +01:00
Alyssa Ross
1f1bd5c8e8
python3Packages.aioh2: init at 0.2.2
Tests skipped due to https://github.com/decentfox/aioh2/issues/17.
2018-10-31 17:47:24 +00:00