git.iko.soy/typeable/nixpkgs
on master help sign in
Restore first-parent history of the master branch

after 0cd857bffd7c1346a04e79a8070ca860d3bc296d has reversed master and staging

commit88cf8e92d898fce725c9d662a16255cdaa10a4cc authorOrivej Desh <orivej@gmx.fr> dateSat 25 Nov 2017, 10:56 (9 years ago) parent45a85ea0cd857b
166 files changed+1289−535
lib/maintainers.nix+1 nixos/modules/services/monitoring/munin.nix+31−37 nixos/modules/services/x11/hardware/libinput.nix+7 nixos/modules/services/x11/xserver.nix−1 pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2 pkgs/applications/office/paperwork/backend.nix+1−1 pkgs/build-support/setup-hooks/multiple-outputs.sh+1−11 pkgs/build-support/trivial-builders.nix+1−1 pkgs/data/misc/tzdata/default.nix+2−1 pkgs/desktops/plasma-5/default.nix+1−5 pkgs/development/compilers/jsonnet/default.nix+1 pkgs/development/compilers/openjdk-darwin/8.nix+1−1 pkgs/development/compilers/openjdk-darwin/default.nix+1−1 pkgs/development/compilers/openjdk/7.nix+2−2 pkgs/development/compilers/openjdk/8.nix+2−2 pkgs/development/compilers/openjdk/9.nix+2−2 pkgs/development/compilers/oraclejdk/jdk-linux-base.nix+1−1 pkgs/development/compilers/oraclejdk/jdk9-linux.nix+1−1 pkgs/development/compilers/zulu/8.nix+1−1 pkgs/development/compilers/zulu/default.nix+1−1 pkgs/development/interpreters/python/build-python-package.nix+11−5 pkgs/development/interpreters/python/cpython/2.7/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.4/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.5/default.nix+1−1 pkgs/development/interpreters/python/cpython/3.6/default.nix+1−1 pkgs/development/interpreters/python/mk-python-derivation.nix+17−17 pkgs/development/interpreters/python/pypy/2.7/default.nix+1−1 pkgs/development/interpreters/python/wrap.sh+2−2 pkgs/development/interpreters/python/wrapper.nix+4−3 pkgs/development/libraries/boost/generic.nix+1−1 pkgs/development/libraries/grantlee/5/setup-hook.sh+6−12 pkgs/development/libraries/kde-frameworks/default.nix+1−5 pkgs/development/libraries/kmsxx/default.nix+3−1 pkgs/development/libraries/libinput/default.nix+2−2 pkgs/development/libraries/libxml2/default.nix+2−2 pkgs/development/libraries/libxslt/default.nix+4−2 pkgs/development/libraries/physics/rivet/default.nix−2 pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh+6−15 pkgs/development/perl-modules/generic/builder.sh+2−2 pkgs/development/python-modules/absl-py/default.nix+2−2 pkgs/development/python-modules/aiohttp/default.nix+2−2 pkgs/development/python-modules/arelle/default.nix+2−1 pkgs/development/python-modules/argcomplete/default.nix+2−2 pkgs/development/python-modules/asn1ate/default.nix+2−1 pkgs/development/python-modules/augeas/default.nix+2−1 pkgs/development/python-modules/blockdiag/default.nix+2−1 pkgs/development/python-modules/bootstrapped-pip/default.nix+2−2 pkgs/development/python-modules/bottleneck/default.nix+3−2 pkgs/development/python-modules/cgroup-utils/default.nix+2−1 pkgs/development/python-modules/construct/default.nix+2−1 pkgs/development/python-modules/coverage/default.nix+2−2 pkgs/development/python-modules/cufflinks/default.nix+2−2 pkgs/development/python-modules/cymem/default.nix+5−4 pkgs/development/python-modules/django-hijack/default.nix+3−2 pkgs/development/python-modules/djangorestframework/default.nix+2−2 pkgs/development/python-modules/dkimpy/default.nix+2−1 pkgs/development/python-modules/dulwich/default.nix+2−2 pkgs/development/python-modules/ecpy/default.nix+2−2 pkgs/development/python-modules/faker/default.nix+2−2 pkgs/development/python-modules/first/default.nix+3−4 pkgs/development/python-modules/geopandas/default.nix+2−1 pkgs/development/python-modules/gevent/default.nix+4−9 pkgs/development/python-modules/gflags/default.nix+2−1 pkgs/development/python-modules/hmmlearn/default.nix+2−1 pkgs/development/python-modules/hyperlink/default.nix+5−3 pkgs/development/python-modules/ipywidgets/default.nix+2−2 pkgs/development/python-modules/jedi/default.nix+4 pkgs/development/python-modules/keras/default.nix+2−2 pkgs/development/python-modules/keystoneclient/default.nix+2−1 pkgs/development/python-modules/keyutils/default.nix+1−2 pkgs/development/python-modules/libgpuarray/default.nix+11−10 pkgs/development/python-modules/libtmux/default.nix+2−2 pkgs/development/python-modules/llfuse/default.nix+3−1 pkgs/development/python-modules/locustio/default.nix+32 pkgs/development/python-modules/markdown2/default.nix+2−2 pkgs/development/python-modules/murmurhash/default.nix+6−5 pkgs/development/python-modules/natsort/default.nix+2−2 pkgs/development/python-modules/nilearn/default.nix+1−1 pkgs/development/python-modules/nwdiag/default.nix+4−2 pkgs/development/python-modules/parso/default.nix+2−2 pkgs/development/python-modules/path.py/default.nix+2−2 pkgs/development/python-modules/phonenumbers/default.nix+2−2 pkgs/development/python-modules/pip-tools/default.nix+3−3 pkgs/development/python-modules/plaster-pastedeploy/default.nix+2−2 pkgs/development/python-modules/powerline/default.nix+5−3 pkgs/development/python-modules/protobuf/default.nix+1−1 pkgs/development/python-modules/psutil/default.nix+28 pkgs/development/python-modules/pwntools/default.nix+1−1 pkgs/development/python-modules/pyGithub/default.nix+2−1 pkgs/development/python-modules/pychromecast/default.nix+2−1 pkgs/development/python-modules/pycrypto/default.nix+1−2 pkgs/development/python-modules/pycuda/compyte.nix+5−4 pkgs/development/python-modules/pyev/default.nix+3−1 pkgs/development/python-modules/pyftgl/default.nix+5−3 pkgs/development/python-modules/pygame/git.nix+2−1 pkgs/development/python-modules/pygobject/3.nix+3−1 pkgs/development/python-modules/pygobject/default.nix+2−1 pkgs/development/python-modules/pygtk/default.nix+3−1 pkgs/development/python-modules/pygtksourceview/default.nix+4−4 pkgs/development/python-modules/pyocr/default.nix+2−1 pkgs/development/python-modules/pyqt/4.x.nix+5−1 pkgs/development/python-modules/pyqt/5.x.nix+5−1 pkgs/development/python-modules/pyro/default.nix+4−1 pkgs/development/python-modules/pyslurm/default.nix+3−1 pkgs/development/python-modules/pysoundfile/default.nix+2−2 pkgs/development/python-modules/pytest-expect/default.nix+2−3 pkgs/development/python-modules/pytest/2_7.nix+3−1 pkgs/development/python-modules/pytest/2_8.nix+3−1 pkgs/development/python-modules/pytest/2_9.nix+3−1 pkgs/development/python-modules/pytest/default.nix+4−4 pkgs/development/python-modules/python-utils/default.nix+2−1 pkgs/development/python-modules/python_fedora/default.nix+1−1 pkgs/development/python-modules/rackspace-novaclient/default.nix+24−9 pkgs/development/python-modules/raven/default.nix+3−1 pkgs/development/python-modules/recursive-pth-loader/default.nix+3−1 pkgs/development/python-modules/restructuredtext_lint/default.nix+2−2 pkgs/development/python-modules/robomachine/default.nix+3−1 pkgs/development/python-modules/robotframework-ride/default.nix+2−1 pkgs/development/python-modules/robotframework/default.nix+2−1 pkgs/development/python-modules/scapy/default.nix+3−1 pkgs/development/python-modules/selenium/default.nix+5−2 pkgs/development/python-modules/seqdiag/default.nix+4−2 pkgs/development/python-modules/setuptools/default.nix+2−2 pkgs/development/python-modules/spacy/default.nix+8−7 pkgs/development/python-modules/sphfile/default.nix+2−1 pkgs/development/python-modules/spotipy/default.nix+1−1 pkgs/development/python-modules/sybase/default.nix+2−1 pkgs/development/python-modules/systemd/default.nix+2−1 pkgs/development/python-modules/tensorflow/default.nix+2 pkgs/development/python-modules/testfixtures/default.nix+2−2 pkgs/development/python-modules/thinc/default.nix+6−5 pkgs/development/python-modules/tiros/default.nix+2−2 pkgs/development/python-modules/tqdm/default.nix+6 pkgs/development/python-modules/trollius/default.nix+1−1 pkgs/development/python-modules/u-msgpack-python/default.nix+1−2 pkgs/development/python-modules/umemcache/default.nix+2−1 pkgs/development/python-modules/uritools/default.nix+1−1 pkgs/development/python-modules/urwid/default.nix+5 pkgs/development/python-modules/usbtmc/default.nix+2−1 pkgs/development/python-modules/waitress-django/default.nix+6−2 pkgs/development/python-modules/webencodings/default.nix+2−3 pkgs/development/python-modules/widgetsnbextension/default.nix+2−2 pkgs/development/python-modules/wxPython/3.0.nix+2−1 pkgs/development/r-modules/generic-builder.nix+2−2 pkgs/games/pysolfc/default.nix+39 pkgs/games/pysolfc/pysolfc-datadir.patch+19 pkgs/misc/cups/drivers/cnijfilter_4_00/default.nix+150 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-1-cups-1.6.patch+62 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-6-cups-1.6.patch+87 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-4-ppd.patch+10 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-5-abi_x86_32.patch+45 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-6-headers.patch+11 pkgs/servers/monitoring/munin/adding_sconfdir_munin-node.patch+41 pkgs/servers/monitoring/munin/default.nix+7−4 pkgs/servers/monitoring/munin/preserve_environment.patch+41 pkgs/servers/traefik/default.nix+7−12 pkgs/servers/x11/xorg/builder.sh+11−15 pkgs/stdenv/generic/setup.sh+30−43 pkgs/tools/filesystems/ceph/generic.nix+2−2 pkgs/tools/misc/hdf5/1_8.nix+76 pkgs/tools/misc/hdf5/default.nix+5−8 pkgs/tools/misc/system-config-printer/default.nix+1−2 pkgs/tools/system/minijail/default.nix+39 pkgs/top-level/all-packages.nix+16−1 pkgs/top-level/lua-packages.nix+2−2 pkgs/top-level/python-packages.nix+96−99
lib/maintainers.nix+1
@@ -488,6 +488,7 @@
488488 patternspandemic = "Brad Christensen <patternspandemic@live.com>";
489489 pawelpacana = "Paweł Pacana <pawel.pacana@gmail.com>";
490490 pbogdan = "Piotr Bogdan <ppbogdan@gmail.com>";
491+ pcarrier = "Pierre Carrier <pc@rrier.ca>";
491492 periklis = "theopompos@gmail.com";
492493 pesterhazy = "Paulus Esterhazy <pesterhazy@gmail.com>";
493494 peterhoeg = "Peter Hoeg <peter@hoeg.com>";
nixos/modules/services/monitoring/munin.nix+31−37
@@ -17,40 +17,6 @@ let
1717 nodeCfg = config.services.munin-node;
1818 cronCfg = config.services.munin-cron;
1919
20− muninPlugins = pkgs.stdenv.mkDerivation {
21− name = "munin-available-plugins";
22− buildCommand = ''
23− mkdir -p $out
24−
25− cp --preserve=mode ${pkgs.munin}/lib/plugins/* $out/
26−
27− for file in $out/*; do
28− case "$file" in
29− */plugin.sh|*/plugins.history)
30− chmod +x "$file"
31− continue;;
32− esac
33−
34− # read magic makers from the file
35− family=$(sed -nr 's/.*#%#\s+family\s*=\s*(\S+)\s*/\1/p' $file)
36− cap=$(sed -nr 's/.*#%#\s+capabilities\s*=\s*(.+)/\1/p' $file)
37−
38− wrapProgram $file \
39− --set PATH "/run/wrappers/bin:/run/current-system/sw/bin" \
40− --set MUNIN_LIBDIR "${pkgs.munin}/lib" \
41− --set MUNIN_PLUGSTATE "/var/run/munin"
42−
43− # munin uses markers to tell munin-node-configure what a plugin can do
44− echo "#%# family=$family" >> $file
45− echo "#%# capabilities=$cap" >> $file
46− done
47−
48− # NOTE: we disable disktstats because plugin seems to fail and it hangs html generation (100% CPU + memory leak)
49− rm -f $out/diskstats
50− '';
51− buildInputs = [ pkgs.makeWrapper ];
52− };
53−
5420 muninConf = pkgs.writeText "munin.conf"
5521 ''
5622 dbdir /var/lib/munin
@@ -83,6 +49,29 @@ let
8349
8450 ${nodeCfg.extraConfig}
8551 '';
52+
53+ pluginConf = pkgs.writeText "munin-plugin-conf"
54+ ''
55+ [hddtemp_smartctl]
56+ user root
57+ group root
58+
59+ [meminfo]
60+ user root
61+ group root
62+
63+ [ipmi*]
64+ user root
65+ group root
66+ '';
67+
68+ pluginConfDir = pkgs.stdenv.mkDerivation {
69+ name = "munin-plugin-conf.d";
70+ buildCommand = ''
71+ mkdir $out
72+ ln -s ${pluginConf} $out/nixos-config
73+ '';
74+ };
8675in
8776
8877{
@@ -179,17 +168,22 @@ in
179168 description = "Munin Node";
180169 after = [ "network.target" ];
181170 wantedBy = [ "multi-user.target" ];
182− path = [ pkgs.munin ];
171+ path = with pkgs; [ munin smartmontools "/run/current-system/sw" "/run/wrappers" ];
172+ environment.MUNIN_LIBDIR = "${pkgs.munin}/lib";
183173 environment.MUNIN_PLUGSTATE = "/var/run/munin";
174+ environment.MUNIN_LOGDIR = "/var/log/munin";
184175 preStart = ''
185176 echo "updating munin plugins..."
186177
187178 mkdir -p /etc/munin/plugins
188179 rm -rf /etc/munin/plugins/*
189− PATH="/run/wrappers/bin:/run/current-system/sw/bin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
180+ ${pkgs.munin}/bin/munin-node-configure --suggest --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${pkgs.munin}/lib/plugins --servicedir=/etc/munin/plugins --sconfdir=${pluginConfDir} 2>/dev/null | ${pkgs.bash}/bin/bash
181+
182+ # NOTE: we disable disktstats because plugin seems to fail and it hangs html generation (100% CPU + memory leak)
183+ rm /etc/munin/plugins/diskstats || true
190184 '';
191185 serviceConfig = {
192− ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/";
186+ ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/ --sconfdir=${pluginConfDir}";
193187 };
194188 };
195189
nixos/modules/services/x11/hardware/libinput.nix+7
@@ -198,6 +198,13 @@ in {
198198
199199 environment.systemPackages = [ pkgs.xorg.xf86inputlibinput ];
200200
201+ environment.etc = [
202+ (let cfgPath = "X11/xorg.conf.d/40-libinput.conf"; in {
203+ source = pkgs.xorg.xf86inputlibinput.out + "/share/" + cfgPath;
204+ target = cfgPath;
205+ })
206+ ];
207+
201208 services.udev.packages = [ pkgs.libinput ];
202209
203210 services.xserver.config =
nixos/modules/services/x11/xserver.nix−1
@@ -700,7 +700,6 @@ in
700700 Section "InputClass"
701701 Identifier "Keyboard catchall"
702702 MatchIsKeyboard "on"
703− Option "XkbRules" "base"
704703 Option "XkbModel" "${cfg.xkbModel}"
705704 Option "XkbLayout" "${cfg.layout}"
706705 Option "XkbOptions" "${cfg.xkbOptions}"
pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name= "riot-web-${version}";
5− version = "0.12.6";
5+ version = "0.13.1";
66
77 src = fetchurl {
88 url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
9− sha256 = "00hxjhnsm4622hv46xm7lc81kbnzi2iz77qppwma14cbh63jbilv";
9+ sha256 = "19g0d3wqmz4vj9flf7pfgfvm2qf2w3jhxp9qdyfbiwd670h5wjlv";
1010 };
1111
1212 installPhase = ''
pkgs/applications/office/paperwork/backend.nix+1−1
@@ -9,7 +9,7 @@
99}:
1010
1111buildPythonPackage rec {
12− name = "paperwork-backend-${version}";
12+ pname = "paperwork-backend";
1313 version = "1.2.1";
1414
1515 src = fetchFromGitHub {
pkgs/build-support/setup-hooks/multiple-outputs.sh+1−11
@@ -164,8 +164,6 @@ _multioutDevs() {
164164}
165165
166166# Make the "dev" propagate other outputs needed for development.
167−# Note: with current cross-building setup, all packages are "native" if not cross-building;
168−# however, if cross-building, the outputs are non-native. We have to choose the right file.
169167_multioutPropagateDev() {
170168 if [ "$outputs" = "out" ]; then return; fi;
171169
@@ -193,16 +191,8 @@ _multioutPropagateDev() {
193191 return
194192 fi
195193
196− local propagatedBuildInputsFile
197− if [ -z "$crossConfig" ]; then
198− propagatedBuildInputsFile=propagated-native-build-inputs
199− else
200− propagatedBuildInputsFile=propagated-build-inputs
201− fi
202−
203194 mkdir -p "${!propagaterOutput}"/nix-support
204195 for output in $propagatedBuildOutputs; do
205− echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/$propagatedBuildInputsFile
196+ echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/propagated-build-inputs
206197 done
207198}
208−
pkgs/build-support/trivial-builders.nix+1−1
@@ -101,7 +101,7 @@ rec {
101101 mkdir -p $out/nix-support
102102 cp ${script} $out/nix-support/setup-hook
103103 '' + lib.optionalString (deps != []) ''
104− printWords ${toString deps} > $out/nix-support/propagated-native-build-inputs
104+ printWords ${toString deps} > $out/nix-support/propagated-build-inputs
105105 '' + lib.optionalString (substitutions != {}) ''
106106 substituteAll ${script} $out/nix-support/setup-hook
107107 '');
pkgs/data/misc/tzdata/default.nix+2−1
@@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
3333 postInstall =
3434 ''
3535 rm $out/share/zoneinfo-posix
36− ln -s . $out/share/zoneinfo/posix
36+ mkdir $out/share/zoneinfo/posix
37+ ( cd $out/share/zoneinfo/posix; ln -s ../* .; rm posix )
3738 mv $out/share/zoneinfo-leaps $out/share/zoneinfo/right
3839
3940 mkdir -p "$dev/include"
pkgs/desktops/plasma-5/default.nix+1−5
@@ -58,11 +58,7 @@ let
5858 # Propagate $dev so that this setup hook is propagated
5959 # But only if there is a separate $dev output
6060 if [ "$outputDev" != out ]; then
61− if [ -n "$crossConfig" ]; then
62− propagatedBuildInputs="$propagatedBuildInputs @dev@"
63− else
64− propagatedNativeBuildInputs="$propagatedNativeBuildInputs @dev@"
65− fi
61+ propagatedBuildInputs="$propagatedBuildInputs @dev@"
6662 fi
6763 fi
6864 '';
pkgs/development/compilers/jsonnet/default.nix+1
@@ -4,6 +4,7 @@ let version = "0.9.4"; in
44
55stdenv.mkDerivation {
66 name = "jsonnet-${version}";
7+ version = version;
78
89 src = fetchFromGitHub {
910 rev = "v${version}";
pkgs/development/compilers/openjdk-darwin/8.nix+1−1
@@ -33,7 +33,7 @@ let
3333 # any package that depends on the JRE has $CLASSPATH set up
3434 # properly.
3535 mkdir -p $out/nix-support
36− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
36+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
3737
3838 install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${freetype}/lib/libfreetype.6.dylib $out/jre/lib/libfontmanager.dylib
3939
pkgs/development/compilers/openjdk-darwin/default.nix+1−1
@@ -23,7 +23,7 @@ let
2323 # any package that depends on the JRE has $CLASSPATH set up
2424 # properly.
2525 mkdir -p $out/nix-support
26− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
26+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
2727
2828 install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${freetype}/lib/libfreetype.6.dylib $out/jre/lib/libfontmanager.dylib
2929
pkgs/development/compilers/openjdk/7.nix+2−2
@@ -184,13 +184,13 @@ let
184184 preFixup = ''
185185 prefix=$jre stripDirs "$stripDebugList" "''${stripDebugFlags:--S}"
186186 patchELF $jre
187− propagatedNativeBuildInputs+=" $jre"
187+ propagatedBuildInputs+=" $jre"
188188
189189 # Propagate the setJavaClassPath setup hook from the JRE so that
190190 # any package that depends on the JRE has $CLASSPATH set up
191191 # properly.
192192 mkdir -p $jre/nix-support
193− printWords ${setJavaClassPath} > $jre/nix-support/propagated-native-build-inputs
193+ printWords ${setJavaClassPath} > $jre/nix-support/propagated-build-inputs
194194
195195 # Set JAVA_HOME automatically.
196196 mkdir -p $out/nix-support
pkgs/development/compilers/openjdk/8.nix+2−2
@@ -206,13 +206,13 @@ let
206206 preFixup = ''
207207 prefix=$jre stripDirs "$stripDebugList" "''${stripDebugFlags:--S}"
208208 patchELF $jre
209− propagatedNativeBuildInputs+=" $jre"
209+ propagatedBuildInputs+=" $jre"
210210
211211 # Propagate the setJavaClassPath setup hook from the JRE so that
212212 # any package that depends on the JRE has $CLASSPATH set up
213213 # properly.
214214 mkdir -p $jre/nix-support
215− printWords ${setJavaClassPath} > $jre/nix-support/propagated-native-build-inputs
215+ printWords ${setJavaClassPath} > $jre/nix-support/propagated-build-inputs
216216
217217 # Set JAVA_HOME automatically.
218218 mkdir -p $out/nix-support
pkgs/development/compilers/openjdk/9.nix+2−2
@@ -204,14 +204,14 @@ let
204204 preFixup = ''
205205 prefix=$jre stripDirs "$stripDebugList" "''${stripDebugFlags:--S}"
206206 patchELF $jre
207− propagatedNativeBuildInputs+=" $jre"
207+ propagatedBuildInputs+=" $jre"
208208
209209 # Propagate the setJavaClassPath setup hook from the JRE so that
210210 # any package that depends on the JRE has $CLASSPATH set up
211211 # properly.
212212 mkdir -p $jre/nix-support
213213 #TODO or printWords? cf https://github.com/NixOS/nixpkgs/pull/27427#issuecomment-317293040
214− echo -n "${setJavaClassPath}" > $jre/nix-support/propagated-native-build-inputs
214+ echo -n "${setJavaClassPath}" > $jre/nix-support/propagated-build-inputs
215215
216216 # Set JAVA_HOME automatically.
217217 mkdir -p $out/nix-support
pkgs/development/compilers/oraclejdk/jdk-linux-base.nix+1−1
@@ -166,7 +166,7 @@ let result = stdenv.mkDerivation rec {
166166 ln -s $jrePath/lib/${architecture}/libnpjp2.so $jrePath/lib/${architecture}/plugins
167167
168168 mkdir -p $out/nix-support
169− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
169+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
170170
171171 # Set JAVA_HOME automatically.
172172 cat <<EOF >> $out/nix-support/setup-hook
pkgs/development/compilers/oraclejdk/jdk9-linux.nix+1−1
@@ -124,7 +124,7 @@ let result = stdenv.mkDerivation rec {
124124 ln -s $out $out/jre
125125
126126 mkdir -p $out/nix-support
127− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
127+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
128128
129129 # Set JAVA_HOME automatically.
130130 cat <<EOF >> $out/nix-support/setup-hook
pkgs/development/compilers/zulu/8.nix+1−1
@@ -54,7 +54,7 @@ in stdenv.mkDerivation rec {
5454 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
5555
5656 mkdir -p $out/nix-support
57− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
57+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
5858
5959 # Set JAVA_HOME automatically.
6060 cat <<EOF >> $out/nix-support/setup-hook
pkgs/development/compilers/zulu/default.nix+1−1
@@ -51,7 +51,7 @@ in stdenv.mkDerivation rec {
5151 find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
5252
5353 mkdir -p $out/nix-support
54− printWords ${setJavaClassPath} > $out/nix-support/propagated-native-build-inputs
54+ printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
5555
5656 # Set JAVA_HOME automatically.
5757 cat <<EOF >> $out/nix-support/setup-hook
pkgs/development/interpreters/python/build-python-package.nix+11−5
@@ -1,11 +1,14 @@
1−/* This function provides a generic Python package builder. It is
2− intended to work with packages that use `distutils/setuptools'
3− (http://pypi.python.org/pypi/setuptools/), which represents a large
4− number of Python packages nowadays. */
1+# This function provides a generic Python package builder,
2+# and can build packages that use distutils, setuptools or flit.
53
64{ lib
75, python
8−, mkPythonDerivation
6+, wrapPython
7+, setuptools
8+, unzip
9+, ensureNewerSourcesHook
10+, pythonModule
11+, namePrefix
912, bootstrapped-pip
1013, flit
1114}:
@@ -15,6 +18,9 @@ let
1518 flit-specific = import ./build-python-package-flit.nix { inherit python flit; };
1619 wheel-specific = import ./build-python-package-wheel.nix { };
1720 common = import ./build-python-package-common.nix { inherit python bootstrapped-pip; };
21+ mkPythonDerivation = import ./mk-python-derivation.nix {
22+ inherit lib python wrapPython setuptools unzip ensureNewerSourcesHook pythonModule namePrefix;
23+ };
1824in
1925
2026{
pkgs/development/interpreters/python/cpython/2.7/default.nix+1−1
@@ -201,7 +201,7 @@ in stdenv.mkDerivation {
201201 in rec {
202202 inherit libPrefix sitePackages x11Support hasDistutilsCxxPatch;
203203 executable = libPrefix;
204− buildEnv = callPackage ../../wrapper.nix { python = self; };
204+ buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
205205 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
206206 pkgs = pythonPackages;
207207 isPy2 = true;
pkgs/development/interpreters/python/cpython/3.4/default.nix+1−1
@@ -160,7 +160,7 @@ in stdenv.mkDerivation {
160160 in rec {
161161 inherit libPrefix sitePackages x11Support;
162162 executable = "${libPrefix}m";
163− buildEnv = callPackage ../../wrapper.nix { python = self; };
163+ buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
164164 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
165165 pkgs = pythonPackages;
166166 isPy3 = true;
pkgs/development/interpreters/python/cpython/3.5/default.nix+1−1
@@ -154,7 +154,7 @@ in stdenv.mkDerivation {
154154 in rec {
155155 inherit libPrefix sitePackages x11Support;
156156 executable = "${libPrefix}m";
157− buildEnv = callPackage ../../wrapper.nix { python = self; };
157+ buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
158158 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
159159 pkgs = pythonPackages;
160160 isPy3 = true;
pkgs/development/interpreters/python/cpython/3.6/default.nix+1−1
@@ -153,7 +153,7 @@ in stdenv.mkDerivation {
153153 in rec {
154154 inherit libPrefix sitePackages x11Support;
155155 executable = "${libPrefix}m";
156− buildEnv = callPackage ../../wrapper.nix { python = self; };
156+ buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
157157 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
158158 pkgs = pythonPackages;
159159 isPy3 = true;
pkgs/development/interpreters/python/mk-python-derivation.nix+17−17
@@ -1,4 +1,4 @@
1−/* Generic builder for Python packages that come without a setup.py. */
1+# Generic builder.
22
33{ lib
44, python
@@ -6,13 +6,13 @@
66, setuptools
77, unzip
88, ensureNewerSourcesHook
9+# Whether the derivation provides a Python module or not.
10+, pythonModule
11+, namePrefix
912}:
1013
1114{ name ? "${attrs.pname}-${attrs.version}"
1215
13−# by default prefix `name` e.g. "python3.3-${name}"
14−, namePrefix ? python.libPrefix + "-"
15−
1616# Dependencies for building the package
1717, buildInputs ? []
1818
@@ -54,18 +54,21 @@ if disabled
5454then throw "${name} not supported for interpreter ${python.executable}"
5555else
5656
57−python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"] // {
57+python.stdenv.mkDerivation (builtins.removeAttrs attrs [
58+ "disabled" "checkInputs" "doCheck" "doInstallCheck" "dontWrapPythonPrograms" "catchConflicts"
59+ ] // {
5860
5961 name = namePrefix + name;
6062
61− inherit pythonPath;
62−
63− buildInputs = [ wrapPython ] ++ buildInputs ++ pythonPath
64− ++ [ (ensureNewerSourcesHook { year = "1980"; }) ]
63+ buildInputs = ([ wrapPython (ensureNewerSourcesHook { year = "1980"; }) ]
6564 ++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip)
66− ++ lib.optionals doCheck checkInputs;
65+ ++ lib.optionals doCheck checkInputs
66+ ++ lib.optional catchConflicts setuptools # If we nog longer propagate setuptools
67+ ++ buildInputs
68+ ++ pythonPath
69+ );
6770
68− # propagate python/setuptools to active setup-hook in nix-shell
71+ # Propagate python and setuptools. We should stop propagating setuptools.
6972 propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools ];
7073
7174 # Python packages don't have a checkPhase, only an installCheckPhase
@@ -83,15 +86,12 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"
8386
8487 passthru = {
8588 inherit python; # The python interpreter
89+ inherit pythonModule;
8690 } // passthru;
8791
88− meta = with lib.maintainers; {
92+ meta = {
8993 # default to python's platforms
9094 platforms = python.meta.platforms;
91− } // meta // {
92− # add extra maintainer(s) to every package
93− maintainers = (meta.maintainers or []) ++ [ chaoflow ];
94− # a marker for release utilities to discover python packages
9595 isBuildPythonPackage = python.meta.platforms;
96− };
96+ } // meta;
9797})
pkgs/development/interpreters/python/pypy/2.7/default.nix+1−1
@@ -137,7 +137,7 @@ in stdenv.mkDerivation rec {
137137 inherit zlibSupport libPrefix sitePackages;
138138 executable = "pypy";
139139 isPypy = true;
140− buildEnv = callPackage ../../wrapper.nix { python = self; };
140+ buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
141141 interpreter = "${self}/bin/${executable}";
142142 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
143143 pkgs = pythonPackages;
pkgs/development/interpreters/python/wrap.sh+2−2
@@ -83,7 +83,7 @@ wrapPythonProgramsIn() {
8383
8484# Adds the lib and bin directories to the PYTHONPATH and PATH variables,
8585# respectively. Recurses on any paths declared in
86−# `propagated-native-build-inputs`, while avoiding duplicating paths by
86+# `propagated-build-inputs`, while avoiding duplicating paths by
8787# flagging the directories it has visited in `pythonPathsSeen`.
8888_addToPythonPath() {
8989 local dir="$1"
@@ -96,7 +96,7 @@ _addToPythonPath() {
9696 addToSearchPath program_PATH $dir/bin
9797
9898 # Inspect the propagated inputs (if they exist) and recur on them.
99− local prop="$dir/nix-support/propagated-native-build-inputs"
99+ local prop="$dir/nix-support/propagated-build-inputs"
100100 if [ -e $prop ]; then
101101 local new_path
102102 for new_path in $(cat $prop); do
pkgs/development/interpreters/python/wrapper.nix+4−3
@@ -2,13 +2,14 @@
22, extraLibs ? []
33, extraOutputsToInstall ? []
44, postBuild ? ""
5−, ignoreCollisions ? false }:
5+, ignoreCollisions ? false
6+, requiredPythonModules
7+, }:
68
79# Create a python executable that knows about additional packages.
810let
9− recursivePthLoader = import ../../python-modules/recursive-pth-loader/default.nix { stdenv = stdenv; python = python; };
1011 env = let
11− paths = stdenv.lib.closePropagation (extraLibs ++ [ python recursivePthLoader ] ) ;
12+ paths = requiredPythonModules (extraLibs ++ [ python ] ) ;
1213 in buildEnv {
1314 name = "${python.name}-env";
1415
pkgs/development/libraries/boost/generic.nix+1−1
@@ -125,7 +125,7 @@ in
125125stdenv.mkDerivation {
126126 name = "boost-${version}";
127127
128− inherit src patches;
128+ inherit src patches version;
129129
130130 meta = {
131131 homepage = http://boost.org/;
pkgs/development/libraries/grantlee/5/setup-hook.sh+6−12
@@ -4,20 +4,14 @@ providesGrantleeRuntime() {
44 [ -d "$1/$grantleePluginPrefix" ]
55}
66
7−_grantleeCrossEnvHook() {
8− if providesQtRuntime "$1"; then
9− propagatedBuildInputs+=" $1"
10− propagatedUserEnvPkgs+=" $1"
11− fi
12−}
13−crossEnvHooks+=(_grantleeCrossEnvHook)
14−
157_grantleeEnvHook() {
168 if providesGrantleeRuntime "$1"; then
17− propagatedNativeBuildInputs+=" $1"
18− if [ -z "$crossConfig" ]; then
9+ propagatedBuildInputs+=" $1"
1910 propagatedUserEnvPkgs+=" $1"
20− fi
2111 fi
2212}
23−envHooks+=(_grantleeEnvHook)
13+if [ "$crossEnv" ]; then
14+ crossEnvHooks+=(_grantleeEnvHook)
15+else
16+ envHooks+=(_grantleeEnvHook)
17+fi
pkgs/development/libraries/kde-frameworks/default.nix+1−5
@@ -56,11 +56,7 @@ let
5656 # Propagate $dev so that this setup hook is propagated
5757 # But only if there is a separate $dev output
5858 if [ "$outputDev" != out ]; then
59− if [ -n "$crossConfig" ]; then
60− propagatedBuildInputs="$propagatedBuildInputs @dev@"
61− else
62− propagatedNativeBuildInputs="$propagatedNativeBuildInputs @dev@"
63− fi
59+ propagatedBuildInputs="$propagatedBuildInputs @dev@"
6460 fi
6561 fi
6662 '';
pkgs/development/libraries/kmsxx/default.nix+3−1
@@ -1,7 +1,9 @@
11{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:
22
33stdenv.mkDerivation rec {
4− name = "kmsxx-2017-10-10";
4+ pname = "kmsxx";
5+ version = "2017-10-10";
6+ name = pname + "-" + version;
57
68 src = fetchFromGitHub {
79 owner = "tomba";
pkgs/development/libraries/libinput/default.nix+2−2
@@ -16,11 +16,11 @@ in
1616with stdenv.lib;
1717stdenv.mkDerivation rec {
1818 name = "libinput-${version}";
19− version = "1.9.1";
19+ version = "1.9.2";
2020
2121 src = fetchurl {
2222 url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz";
23− sha256 = "1y3559146zlfizncky1jlly226i66vwikxhpdkw0jg8v47j0sy7h";
23+ sha256 = "0fyy050hzk47g7305lx5pgyh2abvq7qs4xd3nn1is7zy3wj56s6x";
2424 };
2525
2626 outputs = [ "out" "dev" ];
pkgs/development/libraries/libxml2/default.nix+2−2
@@ -10,11 +10,11 @@ let
1010
1111in stdenv.mkDerivation rec {
1212 name = "libxml2-${version}";
13− version = "2.9.5";
13+ version = "2.9.7";
1414
1515 src = fetchurl {
1616 url = "http://xmlsoft.org/sources/${name}.tar.gz";
17− sha256 = "0f6d5nkvcfx8yqis2dwrnv6qaj0nhiifz49y657vmrwwxvnc2ca0";
17+ sha256 = "034hylzspvkm0p4bczqbf8q05a7r2disr8dz725x4bin61ymwg7n";
1818 };
1919
2020 outputs = [ "bin" "dev" "out" "man" "doc" ]
pkgs/development/libraries/libxslt/default.nix+4−2
@@ -10,7 +10,9 @@ assert pythonSupport -> libxml2.pythonSupport;
1010with stdenv.lib;
1111
1212stdenv.mkDerivation rec {
13− name = "libxslt-1.1.29";
13+ pname = "libxslt";
14+ version = "1.1.29";
15+ name = pname + "-" + version;
1416
1517 src = fetchurl {
1618 url = "http://xmlsoft.org/sources/${name}.tar.gz";
@@ -51,7 +53,7 @@ stdenv.mkDerivation rec {
5153 moveToOutput share/man/man1 "$bin"
5254 '' + optionalString pythonSupport ''
5355 mkdir -p $py/nix-support
54− echo ${libxml2.py} >> $py/nix-support/propagated-native-build-inputs
56+ echo ${libxml2.py} >> $py/nix-support/propagated-build-inputs
5557 moveToOutput lib/python2.7 "$py"
5658 '';
5759
pkgs/development/libraries/physics/rivet/default.nix−2
@@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
1111
1212 postPatch = "patchShebangs ./src/Analyses/cat_with_lines";
1313
14− pythonPath = []; # python wrapper support
15−
1614 patches = [
1715 ./darwin.patch # configure relies on impure sw_vers to -Dunix
1816 ];
pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh+6−15
@@ -33,29 +33,20 @@ addToQMAKEPATH() {
3333# package depending on the building package. (This is necessary in case
3434# the building package does not provide runtime dependencies itself and so
3535# would not be propagated to the user environment.)
36−qtCrossEnvHook() {
37− addToQMAKEPATH "$1"
38− if providesQtRuntime "$1"; then
39− if [ "z${!outputBin}" != "z${!outputDev}" ]; then
40− propagatedBuildInputs+=" $1"
41− fi
42− propagatedUserEnvPkgs+=" $1"
43− fi
44−}
45−crossEnvHooks+=(qtCrossEnvHook)
46−
4736qtEnvHook() {
4837 addToQMAKEPATH "$1"
4938 if providesQtRuntime "$1"; then
5039 if [ "z${!outputBin}" != "z${!outputDev}" ]; then
51− propagatedNativeBuildInputs+=" $1"
40+ propagatedBuildInputs+=" $1"
5241 fi
53− if [ -z "$crossConfig" ]; then
5442 propagatedUserEnvPkgs+=" $1"
55− fi
5643 fi
5744}
58−envHooks+=(qtEnvHook)
45+if [ "$crossConfig" ]; then
46+ crossEnvHooks+=(qtEnvHook)
47+else
48+ envHooks+=(qtEnvHook)
49+fi
5950
6051postPatchMkspecs() {
6152 local bin="${!outputBin}"
pkgs/development/perl-modules/generic/builder.sh+2−2
@@ -34,8 +34,8 @@ postFixup() {
3434 # dependencies in the user environment (since Perl modules don't
3535 # have something like an RPATH, so the only way to find the
3636 # dependencies is to have them in the PERL5LIB variable).
37− if test -e $out/nix-support/propagated-native-build-inputs; then
38− ln -s $out/nix-support/propagated-native-build-inputs $out/nix-support/propagated-user-env-packages
37+ if test -e $out/nix-support/propagated-build-inputs; then
38+ ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
3939 fi
4040}
4141
pkgs/development/python-modules/absl-py/default.nix+2−2
@@ -6,12 +6,12 @@
66
77buildPythonPackage rec {
88 pname = "absl-py";
9− version = "0.1.3";
9+ version = "0.1.5";
1010 name = "${pname}-${version}";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "017wc85i7l3vpjzw3shgb7k7n0jfid88g09dlf1kgdy4ll0sjfax";
14+ sha256 = "94943ed0cd77077fe2d18e79b2f28d3e92f585f7d1c6edc75e640121f3c5d580";
1515 };
1616
1717 propagatedBuildInputs = [ six ];
pkgs/development/python-modules/aiohttp/default.nix+2−2
@@ -13,12 +13,12 @@
1313
1414buildPythonPackage rec {
1515 pname = "aiohttp";
16− version = "2.3.2";
16+ version = "2.3.3";
1717 name = "${pname}-${version}";
1818
1919 src = fetchPypi {
2020 inherit pname version;
21− sha256 = "42373fbdbe8f09233c17e74f53cee877bc7d5b495b4fc14c32a119255e85e736";
21+ sha256 = "0a2e33e90560dacb819b095b9d9611597925d75d1b93dd9490055d3826d98a82";
2222 };
2323
2424 disabled = pythonOlder "3.4";
pkgs/development/python-modules/arelle/default.nix+2−1
@@ -5,8 +5,9 @@
55 ... }:
66
77buildPythonPackage rec {
8− name = "arelle-${version}${lib.optionalString (!gui) "-headless"}";
8+ pname = "arelle-${version}${lib.optionalString (!gui) "-headless"}";
99 version = "2017-08-24";
10+ name = pname + "-" + version;
1011
1112 disabled = !isPy3k;
1213
pkgs/development/python-modules/argcomplete/default.nix+2−2
@@ -4,11 +4,11 @@
44buildPythonPackage rec {
55 name = "${pname}-${version}";
66 pname = "argcomplete";
7− version = "1.9.2";
7+ version = "1.9.3";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "d6ea272a93bb0387f758def836e73c36fff0c54170258c212de3e84f7db8d5ed";
11+ sha256 = "d97b7f3cfaa4e494ad59ed6d04c938fc5ed69b590bd8f53274e258fb1119bd1b";
1212 };
1313
1414 doCheck = false; # bash-completion test fails with "compgen: command not found".
pkgs/development/python-modules/asn1ate/default.nix+2−1
@@ -4,7 +4,8 @@
44buildPythonPackage rec {
55 pname = "asn1ate";
66 date = "20160810";
7− name = "${pname}-unstable-${date}";
7+ version = "unstable-${date}";
8+ name = "${pname}-${version}";
89
910 src = fetchFromGitHub {
1011 sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
pkgs/development/python-modules/augeas/default.nix+2−1
@@ -1,7 +1,8 @@
11{ stdenv, lib, buildPythonPackage, fetchFromGitHub, augeas, cffi }:
22buildPythonPackage rec {
3− name = "augeas-${version}";
3+ pname = "augeas";
44 version = "1.0.2";
5+ name = pname + "-" + version;
56
67 src = fetchFromGitHub {
78 owner = "hercules-team";
pkgs/development/python-modules/blockdiag/default.nix+2−1
@@ -3,8 +3,9 @@
33}:
44
55buildPythonPackage rec {
6− name = "blockdiag-${version}";
6+ pname = "blockdiag";
77 version = "1.5.3";
8+ name = pname + "-" + version;
89
910 src = fetchurl {
1011 url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
pkgs/development/python-modules/bootstrapped-pip/default.nix+2−2
@@ -9,9 +9,9 @@ let
99 };
1010 setuptools_source = fetchPypi {
1111 pname = "setuptools";
12− version = "36.4.0";
12+ version = "36.7.1";
1313 format = "wheel";
14− sha256 = "4d54c0bfee283e78609169213f9c075827d5837086f58b588b417b093c23464b";
14+ sha256 = "eaacfa35eb11199d0b017df416421781a75209817bff3f94820556e36c49bd77";
1515 };
1616
1717 # TODO: Shouldn't be necessary anymore for pip > 9.0.1!
pkgs/development/python-modules/bottleneck/default.nix+3−2
@@ -8,8 +8,9 @@
88
99buildPythonPackage rec {
1010 pname = "Bottleneck";
11− name = "Bottleneck-${version}";
1211 version = "1.2.1";
12+ name = pname + "-" + version;
13+
1314 src = fetchPypi {
1415 inherit pname version;
1516 sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
@@ -23,4 +24,4 @@ buildPythonPackage rec {
2324 postPatch = ''
2425 substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
2526 '';
26−}
27+}
pkgs/development/python-modules/cgroup-utils/default.nix+2−1
@@ -2,7 +2,8 @@
22
33buildPythonPackage rec {
44 version = "0.6";
5− name = "cgroup-utils-${version}";
5+ pname = "cgroup-utils";
6+ name = pname + "-" + version;
67
78 buildInputs = [ pep8 nose ];
89 # Pep8 tests fail...
pkgs/development/python-modules/construct/default.nix+2−1
@@ -1,8 +1,9 @@
11{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:
22
33buildPythonPackage rec {
4− name = "construct-${version}";
4+ pname = "construct";
55 version = "2.8.16";
6+ name = pname + "-" + version;
67
78 src = fetchFromGitHub {
89 owner = "construct";
pkgs/development/python-modules/coverage/default.nix+2−2
@@ -7,12 +7,12 @@
77
88buildPythonPackage rec {
99 pname = "coverage";
10− version = "4.4.1";
10+ version = "4.4.2";
1111 name = "${pname}-${version}";
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "7a9c44400ee0f3b4546066e0710e1250fd75831adc02ab99dda176ad8726f424";
15+ sha256 = "309d91bd7a35063ec7a0e4d75645488bfab3f0b66373e7722f23da7f5b0f34cc";
1616 };
1717
1818 # No tests in archive
pkgs/development/python-modules/cufflinks/default.nix+2−2
@@ -3,12 +3,12 @@
33
44buildPythonPackage rec {
55 pname = "cufflinks";
6− version = "0.12.0";
6+ version = "0.12.1";
77 name = "${pname}-${version}";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "04ninvwm6277n3hqc17ririss90cd832wza3q3vf115rrrds3xyy";
11+ sha256 = "8f11e4b6326cc5b2a18011c09fb64f178ba21002f337fd305f64818012a6c679";
1212 };
1313
1414 propagatedBuildInputs = [ pandas plotly colorlover ];
pkgs/development/python-modules/cymem/default.nix+5−4
@@ -5,8 +5,9 @@
55, python
66}:
77buildPythonPackage rec {
8− name = "cymem-${version}";
8+ pname = "cymem";
99 version = "1.31.2";
10+ name = pname + "-" + version;
1011
1112 src = fetchFromGitHub {
1213 owner = "explosion";
@@ -16,14 +17,14 @@ buildPythonPackage rec {
1617 };
1718
1819 propagatedBuildInputs = [
19− cython
20+ cython
2021 ];
21−
22+
2223 checkPhase = ''
2324 cd cymem/tests
2425 ${python.interpreter} -m unittest discover -p "*test*"
2526 '';
26−
27+
2728 meta = with stdenv.lib; {
2829 description = "Cython memory pool for RAII-style memory management";
2930 homepage = https://github.com/explosion/cymem;
pkgs/development/python-modules/django-hijack/default.nix+3−2
@@ -2,8 +2,9 @@
22 django, django_compat, django_nose
33}:
44buildPythonPackage rec {
5− name = "django-hijack-${version}";
5+ pname = "django-hijack";
66 version = "2.1.4";
7+ name = pname + "-" + version;
78
89 # the pypi packages don't include everything required for the tests
910 src = fetchFromGitHub {
@@ -36,4 +37,4 @@ buildPythonPackage rec {
3637 license = licenses.mit;
3738 maintainers = with maintainers; [ ris ];
3839 };
39−}
40+}
pkgs/development/python-modules/djangorestframework/default.nix+2−2
@@ -1,12 +1,12 @@
11{ stdenv, buildPythonPackage, fetchurl, django }:
22buildPythonPackage rec {
3− version = "3.7.1";
3+ version = "3.7.3";
44 pname = "djangorestframework";
55 name = "${pname}-${version}";
66
77 src = fetchurl {
88 url = "mirror://pypi/d/djangorestframework/${name}.tar.gz";
9− sha256 = "305b2c6564ca46d3b558ba21110ed717135c467adf1a6dfd192bd85f4bb04d50";
9+ sha256 = "067960e5e9e5586d3b2d53a1d626c4800dc33cd8309487d404fc63355674556f";
1010 };
1111
1212 # Test settings are missing
pkgs/development/python-modules/dkimpy/default.nix+2−1
@@ -2,10 +2,11 @@
22, pytest, dns }:
33
44buildPythonApplication rec {
5− name = "${pname}-${majorversion}.${minorversion}";
5+ name = "${pname}-${version}";
66 pname = "dkimpy";
77 majorversion = "0.6";
88 minorversion = "2";
9+ version = "${majorversion}.${minorversion}";
910
1011 src = fetchurl {
1112 url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${name}.tar.gz";
pkgs/development/python-modules/dulwich/default.nix+2−2
@@ -3,13 +3,13 @@
33, git, glibcLocales }:
44
55buildPythonPackage rec {
6− version = "0.18.5";
6+ version = "0.18.6";
77 pname = "dulwich";
88 name = "${pname}-${version}";
99
1010 src = fetchurl {
1111 url = "mirror://pypi/d/dulwich/${name}.tar.gz";
12− sha256 = "838bac318fd0ed79e0eedb6cfd53b6424dc618fec6b99dc959881b12da7bd6e0";
12+ sha256 = "38a04406bc68315794c3bab37c7d4ed137fb8a839482d8894e72b0d9b3eb41a9";
1313 };
1414
1515 LC_ALL = "en_US.UTF-8";
pkgs/development/python-modules/ecpy/default.nix+2−2
@@ -5,11 +5,11 @@
55buildPythonPackage rec {
66 name = "${pname}-${version}";
77 pname = "ECPy";
8− version = "0.8.1";
8+ version = "0.8.2";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "0ab60sx4bbsmccwmdvz1023r0cbzi4phar4ipzn5npdj5gw1ny4l";
12+ sha256 = "0509a90714448ef47ef727cb7aee3415995c883c945e972521b5838fa4c50e24";
1313 };
1414
1515 buildInputs = [ hidapi pycrypto pillow protobuf future ];
pkgs/development/python-modules/faker/default.nix+2−2
@@ -8,12 +8,12 @@ assert pythonOlder "3.3" -> ipaddress != null;
88
99buildPythonPackage rec {
1010 pname = "Faker";
11− version = "0.8.6";
11+ version = "0.8.7";
1212 name = "${pname}-${version}";
1313
1414 src = fetchPypi {
1515 inherit pname version;
16− sha256 = "3c98dd04bba667ecfddb77fcd0dfd19b376b258d21beeaf5b95578826e275a83";
16+ sha256 = "bf7dabcd6807c8829da28a4de491adf7998af506b8571db6a6eb58161157248a";
1717 };
1818
1919 checkInputs = [
pkgs/development/python-modules/first/default.nix+3−4
@@ -1,10 +1,9 @@
11{ stdenv, buildPythonPackage, fetchPypi }:
2−let
2+
3+buildPythonPackage rec {
34 pname = "first";
45 version = "2.0.1";
5−in
6−buildPythonPackage {
7− name = "${pname}-${version}";
6+ name = pname + "-" + version;
87
98 src = fetchPypi {
109 inherit pname version;
pkgs/development/python-modules/geopandas/default.nix+2−1
@@ -3,8 +3,9 @@
33, pytest }:
44
55buildPythonPackage rec {
6− name = "geopandas-${version}";
6+ pname = "geopandas";
77 version = "0.3.0";
8+ name = pname + "-" + version;
89
910 src = fetchFromGitHub {
1011 owner = "geopandas";
pkgs/development/python-modules/gevent/default.nix+4−9
@@ -1,20 +1,15 @@
11{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
22
33buildPythonPackage rec {
4− name = "gevent-1.1.2";
4+ pname = "gevent";
5+ version = "1.2.2";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/g/gevent/${name}.tar.gz";
8− sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c";
10+ sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
911 };
1012
11− # Why do we have this patch?
12− postPatch = ''
13− substituteInPlace libev/ev.c --replace \
14− "ecb_inline void ecb_unreachable (void) ecb_noreturn" \
15− "ecb_inline ecb_noreturn void ecb_unreachable (void)"
16− '';
17−
1813 buildInputs = [ libev ];
1914 propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];
2015
pkgs/development/python-modules/gflags/default.nix+2−1
@@ -2,7 +2,8 @@
22
33buildPythonPackage rec {
44 version = "3.1.2";
5− name = "gflags-${version}";
5+ pname = "gflags";
6+ name = pname + "-" + version;
67
78 src = fetchPypi {
89 inherit version;
pkgs/development/python-modules/hmmlearn/default.nix+2−1
@@ -1,8 +1,9 @@
11{ lib, fetchurl, buildPythonPackage, numpy }:
22
33buildPythonPackage rec {
4− name = "hmmlearn-${version}";
4+ pname = "hmmlearn";
55 version = "0.2.0";
6+ name = pname + "-" + version;
67
78 src = fetchurl {
89 url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
pkgs/development/python-modules/hyperlink/default.nix+5−3
@@ -1,11 +1,13 @@
11{ stdenv, buildPythonPackage, fetchurl, pytest }:
2+
23buildPythonPackage rec {
3− name = "hyperlink-${version}";
4− version = "17.3.0";
4+ pname = "hyperlink";
5+ version = "17.3.1";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
8− sha256 = "06mgnxwjzx8hv34bifc7jvgxz21ixhk5s6xy2kd84hdrlbfvpbfx";
10+ sha256 = "bc4ffdbde9bdad204d507bd8f554f16bba82dd356f6130cb16f41422909c33bc";
911 };
1012
1113 checkInputs = [ pytest ];
pkgs/development/python-modules/ipywidgets/default.nix+2−2
@@ -14,12 +14,12 @@
1414
1515buildPythonPackage rec {
1616 pname = "ipywidgets";
17− version = "7.0.3";
17+ version = "7.0.5";
1818 name = "${pname}-${version}";
1919
2020 src = fetchPypi {
2121 inherit pname version;
22− sha256 = "f98b4c3719097c9d2e6489f303db520b20bd4de3e0b1d6d4f92f81bfe3c2a0c8";
22+ sha256 = "321be3dc48193130ba16e8080172bb5cd052eb65e3ad0ea7b5f80ff73e24bc54";
2323 };
2424
2525 # Tests are not distributed
pkgs/development/python-modules/jedi/default.nix+4
@@ -10,6 +10,10 @@ buildPythonPackage rec {
1010 sha256 = "f6d5973573e76b1fd2ea75f6dcd6445d02d41ff3af5fc61b275b4e323d1dd396";
1111 };
1212
13+ postPatch = ''
14+ substituteInPlace requirements.txt --replace "parso==0.1.0" "parso"
15+ '';
16+
1317 checkInputs = [ pytest glibcLocales tox pytestcov ];
1418
1519 propagatedBuildInputs = [ parso ];
pkgs/development/python-modules/keras/default.nix+2−2
@@ -5,12 +5,12 @@
55
66buildPythonPackage rec {
77 pname = "Keras";
8− version = "2.0.9";
8+ version = "2.1.1";
99 name = "${pname}-${version}";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "6b8572cf1b4a22fd0120b7c23382ba4fa04a6f0397e02af1249be9a7309d1767";
13+ sha256 = "f0ca2458c60d9711edf4291230b31795307ad3781cb6232ff4792b53c8f55123";
1414 };
1515
1616 checkInputs = [
pkgs/development/python-modules/keystoneclient/default.nix+2−1
@@ -9,8 +9,9 @@
99}:
1010
1111buildPythonPackage rec {
12− name = "keystoneclient-${version}";
12+ pname = "keystoneclient";
1313 version = "1.8.1";
14+ name = pname + "-" + version;
1415
1516 src = fetchFromGitHub {
1617 owner = "openstack";
pkgs/development/python-modules/keyutils/default.nix+1−2
@@ -1,9 +1,8 @@
11{ lib, buildPythonPackage, fetchurl, pkgs, pytestrunner }:
22
3−let
3+buildPythonPackage rec {
44 pname = "keyutils";
55 version = "0.5";
6−in buildPythonPackage rec {
76 name = "${pname}-${version}";
87
98 src = fetchurl {
pkgs/development/python-modules/libgpuarray/default.nix+11−10
@@ -1,4 +1,4 @@
1−{ stdenv
1+{ stdenv
22, lib
33, buildPythonPackage
44, fetchFromGitHub
@@ -11,18 +11,19 @@
1111, python
1212, cudaSupport ? false, cudatoolkit
1313, openclSupport ? true, ocl-icd, clblas
14−}:
14+}:
1515
1616buildPythonPackage rec {
17− name = "libgpuarray-${version}";
17+ pname = "libgpuarray";
1818 version = "0.6.9";
19+ name = pname + "-" + version;
1920
2021 src = fetchFromGitHub {
21− owner = "Theano";
22+ owner = "Theano";
2223 repo = "libgpuarray";
2324 rev = "v${version}";
2425 sha256 = "06z47ls42a37gbv0x7f3l1qvils7q0hvy02s95l530klgibp19s0";
25− };
26+ };
2627
2728 # requires a GPU
2829 doCheck = false;
@@ -43,7 +44,7 @@ buildPythonPackage rec {
4344 export NIX_CFLAGS_COMPILE="-L $out/lib -I $out/include $NIX_CFLAGS_COMPILE"
4445
4546 cd ..
46− '';
47+ '';
4748
4849 postFixup = ''
4950 rm $out/lib/libgpuarray-static.a
@@ -64,11 +65,11 @@ buildPythonPackage rec {
6465
6566 enableParallelBuilding = true;
6667
67− buildInputs = [
68− cmake
69− cython
68+ buildInputs = [
69+ cmake
70+ cython
7071 nose
71− ];
72+ ];
7273
7374 meta = with stdenv.lib; {
7475 homepage = "https://github.com/Theano/libgpuarray";
pkgs/development/python-modules/libtmux/default.nix+2−2
@@ -3,11 +3,11 @@
33buildPythonPackage rec {
44 name = "${pname}-${version}";
55 pname = "libtmux";
6− version = "0.7.5";
6+ version = "0.7.7";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "12e5006e59b7d98af5d1a9294f9c8ff2829ac2c1c6ae23dc73c280100b15f485";
10+ sha256 = "5670c8da8d0192d932ac1e34f010e0eeb098cdb2af6daad0307b5418e7a37733";
1111 };
1212
1313 buildInputs = [ pytest_29 ];
pkgs/development/python-modules/llfuse/default.nix+3−1
@@ -3,7 +3,9 @@
33}:
44
55buildPythonPackage rec {
6− name = "llfuse-1.0";
6+ pname = "llfuse";
7+ version = "1.0";
8+ name = pname + "-" + version;
79
810 src = fetchurl {
911 url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
pkgs/development/python-modules/locustio/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ buildPythonPackage
2+, fetchPypi
3+, mock
4+, unittest2
5+, msgpack
6+, requests
7+, flask
8+, gevent
9+, pyzmq
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "locustio";
14+ version = "0.8.1";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "64583987ba1c330bb071aee3e29d2eedbfb7c8b342fa064bfb74fafcff660d61";
19+ };
20+
21+ patchPhase = ''
22+ sed -i s/"pyzmq=="/"pyzmq>="/ setup.py
23+ '';
24+
25+ propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
26+ buildInputs = [ mock unittest2 ];
27+
28+ meta = {
29+ homepage = http://locust.io/;
30+ description = "A load testing tool";
31+ };
32+}
pkgs/development/python-modules/markdown2/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "markdown2";
5− version = "2.3.4";
5+ version = "2.3.5";
66 name = "${pname}-${version}";
77
88 src = fetchurl {
99 url = "mirror://pypi/m/markdown2/${name}.zip";
10− sha256 = "264731e7625402227ff6fb01f2d814882da7705432659a18a419c508e8bfccb1";
10+ sha256 = "8bb9a24eb2aa02f1427aabe46483f0f0215ab18c8a345315ae8e2ee3c3a09c03";
1111 };
1212
1313 meta = with stdenv.lib; {
pkgs/development/python-modules/murmurhash/default.nix+6−5
@@ -6,25 +6,26 @@
66}:
77
88buildPythonPackage rec {
9− name = "murmurhash-${version}";
9+ pname = "murmurhash";
1010 version = "0.26.4";
11−
11+ name = pname + "-" + version;
12+
1213 src = fetchFromGitHub {
1314 owner = "explosion";
1415 repo = "murmurhash";
1516 rev = "0.26.4";
16− sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv";
17+ sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv";
1718 };
1819
1920 buildInputs = [
2021 cython
2122 ];
22−
23+
2324 checkPhase = ''
2425 cd murmurhash/tests
2526 ${python.interpreter} -m unittest discover -p "*test*"
2627 '';
27−
28+
2829 meta = with stdenv.lib; {
2930 description = "Cython bindings for MurmurHash2";
3031 homepage = https://github.com/explosion/murmurhash;
pkgs/development/python-modules/natsort/default.nix+2−2
@@ -18,7 +18,7 @@
1818buildPythonPackage rec {
1919 name = "${pname}-${version}";
2020 pname = "natsort";
21− version = "5.1.0";
21+ version = "5.1.1";
2222
2323 buildInputs = [
2424 hypothesis
@@ -36,7 +36,7 @@ buildPythonPackage rec {
3636
3737 src = fetchPypi {
3838 inherit pname version;
39− sha256 = "5db0fd17c9f8ef3d54962a6e46159ce4807c630f0931169cd15ce54f2ac395b9";
39+ sha256 = "9ffbfb74bf3fc3905be1b9b052ed865675651e38fcd972ed1ed5c64a02f93cbd";
4040 };
4141
4242 # do not run checks on nix_run_setup.py
pkgs/development/python-modules/nilearn/default.nix+1−1
@@ -4,7 +4,7 @@
44buildPythonPackage rec {
55 pname = "nilearn";
66 version = "0.3.1";
7− name = "nilearn-${version}";
7+ name = pname + "-" + version;
88
99 src = fetchPypi {
1010 inherit pname version;
pkgs/development/python-modules/nwdiag/default.nix+4−2
@@ -3,11 +3,13 @@
33}:
44
55buildPythonPackage rec {
6− name = "nwdiag-1.0.3";
6+ pname = "nwdiag";
7+ version = "1.0.4";
8+ name = pname + "-" + version;
79
810 src = fetchurl {
911 url = "mirror://pypi/n/nwdiag/${name}.tar.gz";
10− sha256 = "0n7ary1fngxk8bk15vabc8fhnmxlh098piciwaviwn7l4a5q1zys";
12+ sha256 = "002565875559789a2dfc5f578c07abdf44269c3f7cdf78d4809bdc4bdc2213fa";
1113 };
1214
1315 buildInputs = [ pep8 nose unittest2 docutils ];
pkgs/development/python-modules/parso/default.nix+2−2
@@ -6,12 +6,12 @@
66
77buildPythonPackage rec {
88 pname = "parso";
9− version = "0.1.0";
9+ version = "0.1.1";
1010 name = "${pname}-${version}";
1111
1212 src = fetchPypi {
1313 inherit pname version;
14− sha256 = "c5279916bb417aa2bf634648ff895cf35dce371d7319744884827bfad06f8d7b";
14+ sha256 = "5815f3fe254e5665f3c5d6f54f086c2502035cb631a91341591b5a564203cffb";
1515 };
1616
1717 checkInputs = [ pytest ];
pkgs/development/python-modules/path.py/default.nix+2−2
@@ -10,7 +10,7 @@
1010buildPythonPackage rec {
1111 pname = "path.py";
1212 version = "10.4";
13− name = "path.py-${version}";
13+ name = pname + "-" + version;
1414
1515 src = fetchPypi {
1616 inherit pname version;
@@ -31,4 +31,4 @@ buildPythonPackage rec {
3131 checkPhase = ''
3232 py.test test_path.py
3333 '';
34−}
34+}
pkgs/development/python-modules/phonenumbers/default.nix+2−2
@@ -2,12 +2,12 @@
22
33buildPythonPackage rec {
44 pname = "phonenumbers";
5− version = "8.8.5";
5+ version = "8.8.6";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "adb2dd985f875ac035bbdc6a1cc57e30834e106e2ff7899e09a1690b474c1774";
10+ sha256 = "ab1fa853350dde91be672192b427169b29e3348c236e46ad7a757e4ac8163c8c";
1111 };
1212
1313 meta = {
pkgs/development/python-modules/pip-tools/default.nix+3−3
@@ -3,12 +3,12 @@
33
44buildPythonPackage rec {
55 pname = "pip-tools";
6− version = "1.10.1";
7− name = "pip-tools-${version}";
6+ version = "1.10.2";
7+ name = pname + "-" + version;
88
99 src = fetchurl {
1010 url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
11− sha256 = "37b85d69ceed97337aeefb3e52e41fe0884a505c874757a5bbaa58d92b533ce0";
11+ sha256 = "d381c7249eb48350cc49447cc106df3d90e9e806b13caaede602c1cd38f61b37";
1212 };
1313
1414 LC_ALL = "en_US.UTF-8";
pkgs/development/python-modules/plaster-pastedeploy/default.nix+2−2
@@ -5,12 +5,12 @@
55
66buildPythonPackage rec {
77 pname = "plaster_pastedeploy";
8− version = "0.4.1";
8+ version = "0.4.2";
99 name = "${pname}-${version}";
1010
1111 src = fetchPypi {
1212 inherit pname version;
13− sha256 = "1lrbkya5birfmg9gnfcnsa9id28klmjcqbm33rcg69pv9sfld4jv";
13+ sha256 = "2a401228c7cfbe38f728249e75af7a666f91c61d642cbb8fcb78a71df69d2754";
1414 };
1515
1616 checkPhase = ''
pkgs/development/python-modules/powerline/default.nix+5−3
@@ -12,10 +12,12 @@
1212# the executables of git, mercurial and bazaar.
1313
1414buildPythonPackage rec {
15− rev = "2.6";
16− name = "powerline-${rev}";
15+ version = "2.6";
16+ pname = "powerline";
17+ name = pname + "-" + version;
18+
1719 src = fetchurl {
18− url = "https://github.com/powerline/powerline/archive/${rev}.tar.gz";
20+ url = "https://github.com/powerline/powerline/archive/${version}.tar.gz";
1921 name = "${name}.tar.gz";
2022 sha256 = "c108f11fe10dc910febb94b87d3abded85d4363fb950366a9e30282b9ba7c272";
2123 };
pkgs/development/python-modules/protobuf/default.nix+1−1
@@ -5,7 +5,7 @@
55with stdenv.lib;
66
77buildPythonPackage rec {
8− inherit (protobuf) name src;
8+ inherit (protobuf) name src version;
99 inherit disabled doCheck;
1010
1111 NIX_CFLAGS_COMPILE =
pkgs/development/python-modules/psutil/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, darwin
5+, mock
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "psutil";
10+ version = "5.4.1";
11+ name = "${pname}-${version}";
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "42e2de159e3c987435cb3b47d6f37035db190a1499f3af714ba7af5c379b6ba2";
16+ };
17+
18+ # No tests in archive
19+ doCheck = false;
20+
21+ buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit ];
22+
23+ meta = {
24+ description = "Process and system utilization information interface for python";
25+ homepage = https://github.com/giampaolo/psutil;
26+ license = stdenv.lib.licenses.bsd3;
27+ };
28+}
pkgs/development/python-modules/pwntools/default.nix+1−1
@@ -7,7 +7,7 @@
77buildPythonPackage rec {
88 version = "3.10.0";
99 pname = "pwntools";
10− name = "pwntools-${version}";
10+ name = pname + "-" + version;
1111
1212 src = fetchPypi {
1313 inherit pname version;
pkgs/development/python-modules/pyGithub/default.nix+2−1
@@ -3,8 +3,9 @@
33, buildPythonPackage, python-jose }:
44
55buildPythonPackage rec {
6− name = "PyGithub-${version}";
6+ pname = "PyGithub";
77 version = "1.32";
8+ name = pname + "-" + version;
89
910 src = fetchFromGitHub {
1011 owner = "PyGithub";
pkgs/development/python-modules/pychromecast/default.nix+2−1
@@ -1,8 +1,9 @@
11{ lib, fetchurl, buildPythonPackage, requests, six, zeroconf, protobuf }:
22
33buildPythonPackage rec {
4− name = "PyChromecast-${version}";
4+ pname = "PyChromecast";
55 version = "0.8.1";
6+ name = pname + "-" + version;
67
78 src = fetchurl {
89 url = "mirror://pypi/p/pychromecast/${name}.tar.gz";
pkgs/development/python-modules/pycrypto/default.nix+1−2
@@ -3,10 +3,9 @@
33# This is a dummy package providing the drop-in replacement pycryptodome.
44# https://github.com/NixOS/nixpkgs/issues/21671
55
6−let
6+buildPythonPackage rec {
77 version = pycryptodome.version;
88 pname = "pycrypto";
9−in buildPythonPackage rec {
109 name = "${pname}-${version}";
1110
1211 # Cannot build wheel otherwise (zip 1980 issue)
pkgs/development/python-modules/pycuda/compyte.nix+5−4
@@ -1,10 +1,11 @@
1−{ mkDerivation
1+{ mkDerivation
22, fetchFromGitHub
33}:
44
55mkDerivation rec {
6− name = "compyte-${version}";
7− version = "git-20150817";
6+ pname = "compyte";
7+ version = "git-20150817";
8+ name = pname + "-" + version;
89
910 src = fetchFromGitHub {
1011 owner = "inducer";
@@ -13,7 +14,7 @@ mkDerivation rec {
1314 sha256 = "1980h017qi52b7fqwm75m481xs2napgdd3fbrzkfc29k085cbign";
1415 };
1516
16− installPhase = ''
17+ installPhase = ''
1718 mkdir -p $out
1819 cp -r * $out
1920 '';
pkgs/development/python-modules/pyev/default.nix+3−1
@@ -1,7 +1,9 @@
11{ stdenv, fetchurl, buildPythonPackage, libev }:
22
33buildPythonPackage rec {
4− name = "pyev-0.9.0";
4+ pname = "pyev";
5+ version = "0.9.0";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/p/pyev/${name}.tar.gz";
pkgs/development/python-modules/pyftgl/default.nix+5−3
@@ -2,12 +2,14 @@
22, boost, freetype, ftgl, mesa }:
33
44buildPythonPackage rec {
5− name = "pyftgl-0.4b";
5+ pname = "pyftgl";
6+ version = "0.4b";
7+ name = pname + "-" + version;
68
79 src = fetchFromGitHub {
810 owner = "umlaeute";
9− repo = "pyftgl";
10− rev = "0.4b";
11+ repo = name;
12+ rev = version;
1113 sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
1214 };
1315
pkgs/development/python-modules/pygame/git.nix+2−1
@@ -3,8 +3,9 @@
33}:
44
55buildPythonPackage rec {
6− name = "pygame-${version}";
6+ pname = "pygame";
77 version = "2016-05-17";
8+ name = pname + "-" + version;
89
910 src = fetchFromBitbucket {
1011 owner = "pygame";
pkgs/development/python-modules/pygobject/3.nix+3−1
@@ -3,8 +3,10 @@
33buildPythonPackage rec {
44 major = "3.24";
55 minor = "1";
6− name = "pygobject-${major}.${minor}";
6+ version = "${major}.${minor}";
77 format = "other";
8+ pname = "pygobject";
9+ name = pname + "-" + version;
810
911 src = fetchurl {
1012 url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
pkgs/development/python-modules/pygobject/default.nix+2−1
@@ -1,9 +1,10 @@
11{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
22
33buildPythonPackage rec {
4− name = "pygobject-${version}";
4+ pname = "pygobject";
55 version = "2.28.6";
66 format = "other";
7+ name = pname + "-" + version;
78
89 src = fetchurl {
910 url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
pkgs/development/python-modules/pygtk/default.nix+3−1
@@ -2,7 +2,9 @@
22, buildPythonPackage, libglade ? null, isPy3k }:
33
44buildPythonPackage rec {
5− name = "pygtk-2.24.0";
5+ pname = "pygtk";
6+ version = "2.24.0";
7+ name = pname + "-" + version;
68
79 disabled = isPy3k;
810
pkgs/development/python-modules/pygtksourceview/default.nix+4−4
@@ -1,10 +1,10 @@
11{ lib, fetchurl, python, buildPythonPackage, pkgconfig, pygobject2, glib, pygtk, gnome2 }:
22
3−let version = "2.10.1"; in
4−
5−buildPythonPackage {
6− name = "pygtksourceview-${version}";
3+buildPythonPackage rec {
4+ pname = "pygtksourceview";
75 format = "other";
6+ version = "2.10.1";
7+ name = pname + "-" + version;
88
99 src = fetchurl {
1010 url = "http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${version}.tar.bz2";
pkgs/development/python-modules/pyocr/default.nix+2−1
@@ -3,8 +3,9 @@
33}:
44
55buildPythonPackage rec {
6− name = "pyocr-${version}";
6+ pname = "pyocr";
77 version = "0.4.7";
8+ name = pname + "-" + version;
89
910 # Don't fetch from PYPI because it doesn't contain tests.
1011 src = fetchFromGitHub {
pkgs/development/python-modules/pyqt/4.x.nix+5−1
@@ -1,10 +1,14 @@
11{ stdenv, fetchurl, pythonPackages, qt4, pkgconfig, lndir, dbus_libs, makeWrapper }:
22
33let
4+ pname = "PyQt-x11-gpl";
45 version = "4.12";
6+
57 inherit (pythonPackages) buildPythonPackage python dbus-python sip;
68in buildPythonPackage {
7− name = "PyQt-x11-gpl-${version}";
9+ pname = pname;
10+ name = pname + "-" + version;
11+ version = version;
812 format = "other";
913
1014 src = fetchurl {
pkgs/development/python-modules/pyqt/5.x.nix+5−1
@@ -5,11 +5,15 @@
55}:
66
77let
8+ pname = "PyQt";
89 version = "5.9";
10+
911 inherit (pythonPackages) buildPythonPackage python dbus-python sip;
1012in buildPythonPackage {
11− name = "PyQt-${version}";
13+ pname = pname;
14+ version = version;
1215 format = "other";
16+ name = pname + "-" + version;
1317
1418 meta = with lib; {
1519 description = "Python bindings for Qt5";
pkgs/development/python-modules/pyro/default.nix+4−1
@@ -1,7 +1,10 @@
11{ stdenv, fetchurl, buildPythonPackage, isPy3k }:
22
33buildPythonPackage rec {
4− name = "Pyro-3.16";
4+ pname = "Pyro";
5+ version = "3.16";
6+ name = pname + "-" + version;
7+
58 disabled = isPy3k;
69
710 src = fetchurl {
pkgs/development/python-modules/pyslurm/default.nix+3−1
@@ -1,7 +1,9 @@
11{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
22
33buildPythonPackage rec {
4− name = "pyslurm";
4+ pname = "pyslurm";
5+ version = "unstable-69e4f4f";
6+ name = pname + "-" + version;
57
68 src = fetchFromGitHub {
79 repo = "pyslurm";
pkgs/development/python-modules/pysoundfile/default.nix+2−2
@@ -11,8 +11,8 @@
1111
1212buildPythonPackage rec {
1313 pname = "PySoundFile";
14− name = "PySoundFile-${version}";
1514 version = "0.8.1";
15+ name = pname + "-" + version;
1616
1717 src = fetchPypi {
1818 inherit pname version;
@@ -35,4 +35,4 @@ buildPythonPackage rec {
3535
3636 # https://github.com/bastibe/PySoundFile/issues/157
3737 disabled = isPyPy || stdenv.isi686;
38−}
38+}
pkgs/development/python-modules/pytest-expect/default.nix+2−3
@@ -6,10 +6,9 @@
66, six
77}:
88
9−let
9+buildPythonPackage rec {
1010 pname = "pytest-expect";
1111 version = "1.1.0";
12−in buildPythonPackage rec {
1312 name = "${pname}-${version}";
1413
1514 src = fetchurl {
@@ -28,4 +27,4 @@ in buildPythonPackage rec {
2827 homepage = https://github.com/gsnedders/pytest-expect;
2928 license = lib.licenses.mit;
3029 };
31−}
30+}
pkgs/development/python-modules/pytest/2_7.nix+3−1
@@ -1,6 +1,8 @@
11{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
22buildPythonPackage rec {
3− name = "pytest-2.7.3";
3+ pname = "pytest";
4+ version = "2.7.3";
5+ name = pname + "-" + version;
46
57 src = fetchurl {
68 url = "mirror://pypi/p/pytest/${name}.tar.gz";
pkgs/development/python-modules/pytest/2_8.nix+3−1
@@ -1,6 +1,8 @@
11{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
22buildPythonPackage rec {
3− name = "pytest-2.8.7";
3+ pname = "pytest";
4+ version = "2.8.7";
5+ name = pname + "-" + version;
46
57 src = fetchurl {
68 url = "mirror://pypi/p/pytest/${name}.tar.gz";
pkgs/development/python-modules/pytest/2_9.nix+3−1
@@ -1,6 +1,8 @@
11{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
22buildPythonPackage rec {
3− name = "pytest-2.9.2";
3+ pname = "pytest";
4+ version = "2.9.2";
5+ name = pname + "-" + version;
46
57 src = fetchurl {
68 url = "mirror://pypi/p/pytest/${name}.tar.gz";
pkgs/development/python-modules/pytest/default.nix+4−4
@@ -1,10 +1,9 @@
11{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
2−, setuptools_scm
2+, setuptools_scm, setuptools
33}:
44buildPythonPackage rec {
55 version = "3.2.5";
66 pname = "pytest";
7− name = "${pname}-${version}";
87
98 preCheck = ''
109 # don't test bash builtins
@@ -16,8 +15,9 @@ buildPythonPackage rec {
1615 sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
1716 };
1817
19− buildInputs = [ hypothesis setuptools_scm ];
20− propagatedBuildInputs = [ py ]
18+ checkInputs = [ hypothesis ];
19+ buildInputs = [ setuptools_scm ];
20+ propagatedBuildInputs = [ py setuptools ]
2121 ++ (stdenv.lib.optional isPy26 argparse);
2222
2323 meta = with stdenv.lib; {
pkgs/development/python-modules/python-utils/default.nix+2−1
@@ -1,8 +1,9 @@
11{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
22
33buildPythonPackage rec {
4− name = "python-utils-${version}";
4+ pname = "python-utils";
55 version = "2.2.0";
6+ name = pname + "-" + version;
67
78 src = fetchFromGitHub {
89 owner = "WoLpH";
pkgs/development/python-modules/python_fedora/default.nix+1−1
@@ -4,7 +4,7 @@
44buildPythonPackage rec {
55 pname = "python-fedora";
66 version = "0.9.0";
7− name = "python-fedora-${version}";
7+ name = pname + "-" + version;
88
99 src = fetchPypi {
1010 inherit pname version;
pkgs/development/python-modules/rackspace-novaclient/default.nix+24−9
@@ -1,7 +1,9 @@
11{ buildPythonPackage, fetchurl, isPy3k, requests, novaclient, six, lib }:
22let
33os-virtual-interfacesv2-python-novaclient-ext = buildPythonPackage rec {
4− name = "os_virtual_interfacesv2_python_novaclient_ext-0.20";
4+ pname = "os_virtual_interfacesv2_python_novaclient_ext";
5+ version = "0.20";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/o/os-virtual-interfacesv2-python-novaclient-ext/${name}.tar.gz";
@@ -18,7 +20,9 @@ os-virtual-interfacesv2-python-novaclient-ext = buildPythonPackage rec {
1820};
1921
2022ip-associations-python-novaclient-ext = buildPythonPackage rec {
21− name = "ip_associations_python_novaclient_ext-0.2";
23+ pname = "ip_associations_python_novaclient_ext";
24+ version = "0.2";
25+ name = pname + "-" + version;
2226
2327 src = fetchurl {
2428 url = "mirror://pypi/i/ip_associations_python_novaclient_ext/${name}.tar.gz";
@@ -34,9 +38,10 @@ ip-associations-python-novaclient-ext = buildPythonPackage rec {
3438 };
3539};
3640
37−
3841rackspace-auth-openstack = buildPythonPackage rec {
39− name = "rackspace-auth-openstack-1.3";
42+ pname = "rackspace-auth-openstack";
43+ version = "1.3";
44+ name = pname + "-" + version;
4045
4146 src = fetchurl {
4247 url = "mirror://pypi/r/rackspace-auth-openstack/${name}.tar.gz";
@@ -52,7 +57,9 @@ rackspace-auth-openstack = buildPythonPackage rec {
5257 };
5358};
5459rax-default-network-flags-python-novaclient-ext = buildPythonPackage rec {
55− name = "rax_default_network_flags_python_novaclient_ext-0.4.0";
60+ pname = "rax_default_network_flags_python_novaclient_ext";
61+ version = "0.4.0";
62+ name = pname + "-" + version;
5663
5764 src = fetchurl {
5865 url = "mirror://pypi/r/rax_default_network_flags_python_novaclient_ext/${name}.tar.gz";
@@ -68,7 +75,9 @@ rax-default-network-flags-python-novaclient-ext = buildPythonPackage rec {
6875 };
6976};
7077os-networksv2-python-novaclient-ext = buildPythonPackage rec {
71− name = "os_networksv2_python_novaclient_ext-0.26";
78+ pname = "os_networksv2_python_novaclient_ext";
79+ version = "0.26";
80+ name = pname + "-" + version;
7281
7382 src = fetchurl {
7483 url = "mirror://pypi/o/os_networksv2_python_novaclient_ext/${name}.tar.gz";
@@ -85,7 +94,9 @@ os-networksv2-python-novaclient-ext = buildPythonPackage rec {
8594};
8695
8796rax-scheduled-images-python-novaclient-ext = buildPythonPackage rec {
88− name = "rax_scheduled_images_python_novaclient_ext-0.3.1";
97+ pname = "rax_scheduled_images_python_novaclient_ext";
98+ version = "0.3.1";
99+ name = pname + "-" + version;
89100
90101 src = fetchurl {
91102 url = "mirror://pypi/r/rax_scheduled_images_python_novaclient_ext/${name}.tar.gz";
@@ -102,7 +113,9 @@ rax-scheduled-images-python-novaclient-ext = buildPythonPackage rec {
102113};
103114
104115os-diskconfig-python-novaclient-ext = buildPythonPackage rec {
105− name = "os_diskconfig_python_novaclient_ext-0.1.3";
116+ pname = "os_diskconfig_python_novaclient_ext";
117+ version = "0.1.3";
118+ name = pname + "-" + version;
106119
107120 src = fetchurl {
108121 url = "mirror://pypi/o/os_diskconfig_python_novaclient_ext/${name}.tar.gz";
@@ -120,7 +133,9 @@ os-diskconfig-python-novaclient-ext = buildPythonPackage rec {
120133
121134in
122135buildPythonPackage rec {
123− name = "rackspace-novaclient-2.1";
136+ pname = "rackspace-novaclient";
137+ version = "2.1";
138+ name = pname + "-" + version;
124139
125140 src = fetchurl {
126141 url = "mirror://pypi/r/rackspace-novaclient/${name}.tar.gz";
pkgs/development/python-modules/raven/default.nix+3−1
@@ -1,7 +1,9 @@
11{ lib, buildPythonPackage, fetchurl, isPy3k, contextlib2 }:
22
33buildPythonPackage rec {
4− name = "raven-6.3.0";
4+ pname = "raven";
5+ version = "6.3.0";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/r/raven/${name}.tar.gz";
pkgs/development/python-modules/recursive-pth-loader/default.nix+3−1
@@ -1,7 +1,9 @@
11{ stdenv, python }:
22
33stdenv.mkDerivation rec {
4− name = "python-recursive-pth-loader-1.0";
4+ pname = "python-recursive-pth-loader";
5+ version = "1.0";
6+ name = pname + "-" + version;
57
68 unpackPhase = "true";
79
pkgs/development/python-modules/restructuredtext_lint/default.nix+2−2
@@ -11,12 +11,12 @@
1111
1212buildPythonPackage rec {
1313 pname = "restructuredtext_lint";
14− version = "1.1.1";
14+ version = "1.1.2";
1515 name = "${pname}-${version}";
1616
1717 src = fetchPypi {
1818 inherit pname version;
19− sha256 = "167e8adaa5bdc30531ee91760d6c216b306a8a3372aad34b1f72d8adcc5e011e";
19+ sha256 = "9201d354e22c27be61cf6d8212da6e10c875eec7ec8d1bdb1067b2a5ba931637";
2020 };
2121
2222 checkInputs = [ nose flake8 pyyaml testtools ];
pkgs/development/python-modules/robomachine/default.nix+3−1
@@ -1,7 +1,9 @@
11{ stdenv, fetchurl, buildPythonPackage, pyparsing, argparse, robotframework }:
22
33buildPythonPackage rec {
4− name = "robomachine-0.6";
4+ pname = "robomachine";
5+ version = "0.6";
6+ name = pname + "-" + version;
57
68 src = fetchurl {
79 url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
pkgs/development/python-modules/robotframework-ride/default.nix+2−1
@@ -2,8 +2,9 @@
22
33buildPythonPackage rec {
44 version = "1.2.3";
5− name = "robotframework-ride-${version}";
5+ pname = "robotframework-ride";
66 disabled = isPy3k;
7+ name = pname + "-" + version;
78
89 src = fetchurl {
910 url = "https://robotframework-ride.googlecode.com/files/${name}.tar.gz";
pkgs/development/python-modules/robotframework/default.nix+2−1
@@ -2,8 +2,9 @@
22
33buildPythonPackage rec {
44 version = "3.0.2";
5− name = "robotframework-${version}";
5+ pname = "robotframework";
66 disabled = isPy3k;
7+ name = pname + "-" + version;
78
89 src = fetchurl {
910 url = "mirror://pypi/r/robotframework/${name}.tar.gz";
pkgs/development/python-modules/scapy/default.nix+3−1
@@ -1,7 +1,9 @@
11{ stdenv, fetchurl, buildPythonPackage, isPy3k, isPyPy }:
22
33buildPythonPackage rec {
4− name = "scapy-2.2.0";
4+ pname = "scapy";
5+ version = "2.2.0";
6+ name = pname + "-" + version;
57
68 disabled = isPy3k || isPyPy;
79
pkgs/development/python-modules/selenium/default.nix+5−2
@@ -8,7 +8,10 @@
88}:
99
1010buildPythonPackage rec {
11− name = "selenium-3.6.0";
11+ pname = "selenium";
12+ version = "3.6.0";
13+ name = pname + "-" + version;
14+
1215 src = fetchurl {
1316 url = "mirror://pypi/s/selenium/${name}.tar.gz";
1417 sha256 = "15qpvz0bdwjvpcj11fm0rw6r5inr66sqw89ww50l025sbhf04qwm";
@@ -47,4 +50,4 @@ buildPythonPackage rec {
4750 license = licenses.asl20;
4851 maintainers = with maintainers; [ jraygauthier ];
4952 };
50−}
53+}
pkgs/development/python-modules/seqdiag/default.nix+4−2
@@ -3,11 +3,13 @@
33}:
44
55buildPythonPackage rec {
6− name = "seqdiag-0.9.4";
6+ pname = "seqdiag";
7+ version = "0.9.5";
8+ name = pname + "-" + version;
79
810 src = fetchurl {
911 url = "mirror://pypi/s/seqdiag/${name}.tar.gz";
10− sha256 = "1qa7d0m1wahvmrj95rxkb6128cbwd4w3gy8gbzncls66h46bifiz";
12+ sha256 = "994402cb19fef77ee113d18810aa397a7290553cda5f900be2bb44e2c7742657";
1113 };
1214
1315 buildInputs = [ pep8 nose unittest2 docutils ];
pkgs/development/python-modules/setuptools/default.nix+2−2
@@ -8,13 +8,13 @@
88# Should use buildPythonPackage here somehow
99stdenv.mkDerivation rec {
1010 pname = "setuptools";
11− version = "36.6.0";
11+ version = "36.7.1";
1212 name = "${python.libPrefix}-${pname}-${version}";
1313
1414 src = fetchPypi {
1515 inherit pname version;
1616 extension = "zip";
17− sha256 = "62074589522a798da243f47348f38020d55b6c945652e2f2c09d3a96299812b7";
17+ sha256 = "543becf5d33d8989dc5222403997488e9dc3872bdecdabb0f57184ca253ec1e8";
1818 };
1919
2020 buildInputs = [ python wrapPython unzip ];
pkgs/development/python-modules/spacy/default.nix+8−7
@@ -4,7 +4,7 @@
44, python
55, fetchPypi
66, fetchFromGitHub
7−, pytest
7+, pytest
88, cython
99, cymem
1010, preshed
@@ -28,20 +28,21 @@ let
2828 version = "2017.04.05";
2929
3030 src = fetchPypi {
31− inherit pname version;
31+ inherit pname version;
3232 sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
3333 };
3434 };
3535in buildPythonPackage rec {
36− name = "spacy-${version}";
36+ pname = "spacy";
3737 version = "1.8.2";
38+ name = pname + "-" + version;
3839
3940 src = fetchFromGitHub {
4041 owner = "explosion";
4142 repo = "spaCy";
4243 rev = "v${version}";
43− sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
44− };
44+ sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
45+ };
4546
4647 propagatedBuildInputs = [
4748 cython
@@ -65,8 +66,8 @@ in buildPythonPackage rec {
6566 doCheck = false;
6667 # checkPhase = ''
6768 # ${python.interpreter} -m pytest spacy/tests --vectors --models --slow
68− # '';
69−
69+ # '';
70+
7071 meta = with stdenv.lib; {
7172 description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
7273 homepage = https://github.com/explosion/spaCy;
pkgs/development/python-modules/sphfile/default.nix+2−1
@@ -1,8 +1,9 @@
11{ lib, fetchurl, buildPythonPackage, numpy }:
22
33buildPythonPackage rec {
4− name = "sphfile-${version}";
4+ pname = "sphfile";
55 version = "1.0.0";
6+ name = pname + "-" + version;
67
78 src = fetchurl {
89 url = "mirror://pypi/s/sphfile/${name}.tar.gz";
pkgs/development/python-modules/spotipy/default.nix+1−1
@@ -2,8 +2,8 @@
22
33buildPythonPackage rec {
44 pname = "spotipy";
5− name = "spotipy-${version}";
65 version = "2.4.4";
6+ name = pname + "-" + version;
77
88 src = fetchPypi {
99 inherit pname version;
pkgs/development/python-modules/sybase/default.nix+2−1
@@ -6,8 +6,9 @@
66}:
77
88buildPythonPackage rec {
9− name = "python-sybase-${version}";
9+ pname = "python-sybase";
1010 version = "0.40pre2";
11+ name = pname + "-" + version;
1112 disabled = isPy3k;
1213
1314 src = fetchurl {
pkgs/development/python-modules/systemd/default.nix+2−1
@@ -1,8 +1,9 @@
11{ stdenv, buildPythonPackage, fetchFromGitHub, systemd, pkgconfig }:
22
33buildPythonPackage rec {
4− name = "python-systemd-${version}";
4+ pname = "systemd";
55 version = "234";
6+ name = pname + "-" + version;
67
78 src = fetchFromGitHub {
89 owner = "systemd";
pkgs/development/python-modules/tensorflow/default.nix+2
@@ -97,6 +97,8 @@ let
9797 };
9898
9999in buildPythonPackage (common // {
100+ pname = "tensorflow";
101+ version = common.version;
100102 name = "tensorflow-${common.version}";
101103
102104 deps = stdenv.mkDerivation (common // {
pkgs/development/python-modules/testfixtures/default.nix+2−2
@@ -3,11 +3,11 @@
33
44buildPythonPackage rec {
55 pname = "testfixtures";
6− version = "5.3.0";
6+ version = "5.3.1";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "1xfar653qmikwb94xj3f0xfp8dh2llxjsxipx1272d8qwl0aknnx";
10+ sha256 = "670ade9410b7132278209e6a2e893caf098b040c4ba4d5ea848367a9c5588728";
1111 };
1212
1313 checkInputs = [ mock manuel pytest sybil zope_component ];
pkgs/development/python-modules/thinc/default.nix+6−5
@@ -30,21 +30,22 @@ let
3030 version = "1.0.1";
3131
3232 src = fetchPypi {
33− inherit pname version;
33+ inherit pname version;
3434 sha256 = "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39";
3535 };
3636
3737 doCheck = false; # fails to import support from test
3838 };
3939in buildPythonPackage rec {
40− name = "thinc-${version}";
40+ pname = "thinc";
4141 version = "6.5.1";
42+ name = pname + "-" + version;
4243
4344 src = fetchFromGitHub {
4445 owner = "explosion";
4546 repo = "thinc";
4647 rev = "v${version}";
47− sha256 = "008kmjsvanh6qgnpvsn3qacfcyprxirxbw4yfd8flyg7mxw793ws";
48+ sha256 = "008kmjsvanh6qgnpvsn3qacfcyprxirxbw4yfd8flyg7mxw793ws";
4849 };
4950
5051 propagatedBuildInputs = [
@@ -67,14 +68,14 @@ in buildPythonPackage rec {
6768 ];
6869
6970 doCheck = false;
70−
71+
7172 # fails to import some modules
7273 # checkPhase = ''
7374 # ${python.interpreter} -m pytest thinc/tests
7475 # # cd thinc/tests
7576 # # ${python.interpreter} -m unittest discover -p "*test*"
7677 # '';
77−
78+
7879 meta = with stdenv.lib; {
7980 description = "Practical Machine Learning for NLP in Python";
8081 homepage = https://github.com/explosion/thinc;
pkgs/development/python-modules/tiros/default.nix+2−2
@@ -5,11 +5,11 @@
55buildPythonPackage rec {
66 pname = "tiros";
77 name = "${pname}-${version}";
8− version = "1.0.39";
8+ version = "1.0.40";
99
1010 src = fetchPypi {
1111 inherit pname version;
12− sha256 = "10wh84lpl7k8i69hlxwrzp2lln63w2afv9l7ij7r3lqjwd0z0skr";
12+ sha256 = "841ca13564e3cddfd1404cbc60b3433bcc1e31c2753ecea20d0ad68173b80169";
1313 };
1414
1515 patchPhase = ''
pkgs/development/python-modules/tqdm/default.nix+6
@@ -21,6 +21,12 @@ buildPythonPackage rec {
2121
2222 buildInputs = [ nose coverage glibcLocales flake8 ];
2323
24+ postPatch = ''
25+ # Remove performance testing.
26+ # Too sensitive for on Hydra.
27+ rm tqdm/tests/tests_perf.py
28+ '';
29+
2430 LC_ALL="en_US.UTF-8";
2531
2632 meta = {
pkgs/development/python-modules/trollius/default.nix+1−1
@@ -13,7 +13,7 @@ buildPythonPackage rec {
1313
1414 buildInputs = [ mock ];
1515
16− propagatedBuildInputs = lib.optional (isPy27 || isPyPy) [ futures ];
16+ propagatedBuildInputs = lib.optionals (isPy27 || isPyPy) [ futures ];
1717
1818 patches = [
1919 ./tests.patch
pkgs/development/python-modules/u-msgpack-python/default.nix+1−2
@@ -5,10 +5,9 @@
55, python
66}:
77
8−let
8+buildPythonPackage rec {
99 pname = "u-msgpack-python";
1010 version = "2.4.1";
11−in buildPythonPackage rec {
1211 name = "${pname}-${version}";
1312
1413 src = fetchurl {
pkgs/development/python-modules/umemcache/default.nix+2−1
@@ -1,9 +1,10 @@
11{ stdenv, buildPythonPackage, isPy3k, fetchurl }:
22
33buildPythonPackage rec {
4− name = "umemcache-${version}";
4+ pname = "umemcache";
55 version = "1.6.3";
66 disabled = isPy3k;
7+ name = pname + "-" + version;
78
89 src = fetchurl {
910 url = "mirror://pypi/u/umemcache/${name}.zip";
pkgs/development/python-modules/uritools/default.nix+1−1
@@ -2,8 +2,8 @@
22
33buildPythonPackage rec {
44 pname = "uritools";
5− name = "uritools-${version}";
65 version = "2.1.0";
6+ name = pname + "-" + version;
77
88 src = fetchPypi {
99 inherit pname version;
pkgs/development/python-modules/urwid/default.nix+5
@@ -23,6 +23,11 @@ buildPythonPackage (rec {
2323 })
2424 ];
2525
26+ postPatch = ''
27+ # Several tests keep failing on Hydra
28+ rm urwid/tests/test_vterm.py
29+ '';
30+
2631 meta = with stdenv.lib; {
2732 description = "A full-featured console (xterm et al.) user interface library";
2833 homepage = http://excess.org/urwid;
pkgs/development/python-modules/usbtmc/default.nix+2−1
@@ -1,8 +1,9 @@
11{ stdenv, fetchurl, buildPythonPackage, pyusb }:
22
33buildPythonPackage rec {
4− name = "usbtmc-${version}";
4+ pname = "usbtmc";
55 version = "0.8";
6+ name = pname + "-" + version;
67
78 src = fetchurl {
89 url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
pkgs/development/python-modules/waitress-django/default.nix+6−2
@@ -1,6 +1,10 @@
11{ buildPythonPackage, django_1_8, waitress }:
2−buildPythonPackage {
3− name = "waitress-django";
2+
3+buildPythonPackage rec {
4+ pname = "waitress-django";
5+ version = "0.0.0";
6+ name = pname;
7+
48 src = ./.;
59 pythonPath = [ django_1_8 waitress ];
610 doCheck = false;
pkgs/development/python-modules/webencodings/default.nix+2−3
@@ -4,10 +4,9 @@
44, pytest
55}:
66
7−let
7+buildPythonPackage rec {
88 pname = "webencodings";
99 version = "0.5.1";
10−in buildPythonPackage rec {
1110 name = "${pname}-${version}";
1211
1312 src = fetchurl {
@@ -26,4 +25,4 @@ in buildPythonPackage rec {
2625 homepage = https://github.com/SimonSapin/python-webencodings;
2726 license = lib.licenses.bsd3;
2827 };
29−}
28+}
pkgs/development/python-modules/widgetsnbextension/default.nix+2−2
@@ -8,11 +8,11 @@
88buildPythonPackage rec {
99 pname = "widgetsnbextension";
1010 name = "${pname}-${version}";
11− version = "3.0.6";
11+ version = "3.0.8";
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "3fbedb4ae0883f48af2397c65a8f9fbf8ed868f1808db70f8aa72f25d391fa9b";
15+ sha256 = "a57e29e733b989e68fdd0f3d6927a3691763b39792591d573b95a89a5a12ec15";
1616 };
1717
1818 propagatedBuildInputs = [ notebook ];
pkgs/development/python-modules/wxPython/3.0.nix+2−1
@@ -19,8 +19,9 @@
1919assert wxGTK.unicode;
2020
2121buildPythonPackage rec {
22− name = "wxPython-${version}";
22+ pname = "wxPython";
2323 version = "3.0.2.0";
24+ name = pname + "-" + version;
2425
2526 disabled = isPy3k || isPyPy;
2627 doCheck = false;
pkgs/development/r-modules/generic-builder.nix+2−2
@@ -41,8 +41,8 @@ stdenv.mkDerivation ({
4141 '';
4242
4343 postFixup = ''
44− if test -e $out/nix-support/propagated-native-build-inputs; then
45− ln -s $out/nix-support/propagated-native-build-inputs $out/nix-support/propagated-user-env-packages
44+ if test -e $out/nix-support/propagated-build-inputs; then
45+ ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
4646 fi
4747 '';
4848
pkgs/games/pysolfc/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ fetchurl, python2, stdenv }:
2+
3+with python2.pkgs;
4+
5+buildPythonApplication rec {
6+ pname = "PySolFC";
7+ version = "2.0";
8+
9+ src = fetchurl {
10+ url = "mirror://sourceforge/pysolfc/${pname}-${version}.tar.bz2";
11+ sha256 = "0v0v8iflw55f5mghglkw80j8b7lv1hffjassfhqc4y84dmz8xjyv";
12+ };
13+
14+ patches = [
15+ ./pysolfc-datadir.patch
16+ ];
17+
18+ propagatedBuildInputs = [
19+ tkinter
20+ ];
21+
22+ # No tests in archive
23+ doCheck = false;
24+
25+ postInstall = ''
26+ # executables should not have an extension
27+ pushd $out/bin
28+ mv pysol.py pysol
29+ rm pysol.pyc
30+ popd
31+ '';
32+
33+ meta = with stdenv.lib; {
34+ description = "A collection of more than 1000 solitaire card games";
35+ homepage = http://pysolfc.sourceforge.net/;
36+ license = licenses.gpl3;
37+ maintainers = with maintainers; [ kierdavis ];
38+ };
39+}
pkgs/games/pysolfc/pysolfc-datadir.patchnew file+19
@@ -0,0 +1,19 @@
1+diff --git a/pysollib/util.py b/pysollib/util.py
2+index 8de3f00..26f4bc7 100644
3+--- a/pysollib/util.py
4++++ b/pysollib/util.py
5+@@ -110,13 +110,7 @@ class DataLoader:
6+ head, tail = os.path.split(argv0)
7+ if not head:
8+ head = os.curdir
9+- # dir where placed startup script
10+- path.append(head)
11+- path.append(os.path.join(head, "data"))
12+- path.append(os.path.join(head, os.pardir, "data"))
13+- # dir where placed pysol package
14+- path.append(os.path.join(sys.path[0], "data"))
15+- path.append(os.path.join(sys.path[0], "pysollib", "data"))
16++ path.append(os.path.join(head, "..", "share", "PySolFC"))
17+ # from settings.py
18+ path.extend(DATA_DIRS)
19+ # check path for valid directories
pkgs/misc/cups/drivers/cnijfilter_4_00/default.nixnew file+150
@@ -0,0 +1,150 @@
1+{ stdenv, lib, fetchzip,
2+ autoconf, automake, libtool,
3+ cups, popt, libtiff, libpng,
4+ ghostscript, glib, libusb, libxml2 }:
5+
6+/* this derivation is basically just a transcription of the rpm .spec
7+ file included in the tarball */
8+
9+let arch =
10+ if stdenv.system == "x86_64-linux" then "64"
11+ else if stdenv.system == "i686-linux" then "32"
12+ else abort "Unsupported architecture";
13+
14+in stdenv.mkDerivation rec {
15+ name = "cnijfilter-${version}";
16+
17+ /* important note about versions: cnijfilter packages seem to use
18+ versions in a non-standard way. the version indicates which
19+ printers are supported in the package. so this package should
20+ not be "upgraded" in the usual way.
21+
22+ instead, if you want to include another version supporting your
23+ printer, you should try to abstract out the common things (which
24+ should be pretty much everything except the version and the 'pr'
25+ and 'pr_id' values to loop over). */
26+ version = "4.00";
27+
28+ src = fetchzip {
29+ url = "http://gdlp01.c-wss.com/gds/5/0100005515/01/cnijfilter-source-4.00-1.tar.gz";
30+ sha256 = "1f6vpx1z3qa88590i5m0s49j9n90vpk81xmw6pvj0nfd3qbvzkya";
31+ };
32+
33+ buildInputs = [ autoconf libtool automake
34+ cups popt libtiff libpng
35+ ghostscript glib libusb libxml2 ];
36+
37+ # patches from https://github.com/tokiclover/bar-overlay/tree/master/net-print/cnijfilter
38+ patches = [
39+ ./patches/cnijfilter-3.80-1-cups-1.6.patch
40+ ./patches/cnijfilter-3.80-6-cups-1.6.patch
41+ ./patches/cnijfilter-4.00-4-ppd.patch
42+ ./patches/cnijfilter-4.00-5-abi_x86_32.patch
43+ ./patches/cnijfilter-4.00-6-headers.patch
44+ ];
45+
46+ postPatch = ''
47+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" backend/src/Makefile.am;
48+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" backendnet/backend/Makefile.am;
49+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" cnijbe/src/Makefile.am;
50+ sed -i "s|/usr|$out|" backend/src/cnij_backend_common.c;
51+ sed -i "s|/usr/bin|${ghostscript}/bin|" pstocanonij/filter/pstocanonij.c;
52+ '';
53+
54+ configurePhase = ''
55+ cd libs
56+ ./autogen.sh --prefix=$out
57+
58+ cd ../bscc2sts
59+ ./autogen.sh
60+
61+ cd ../cnijnpr
62+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib
63+
64+ cd ../cngpij
65+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
66+
67+ cd ../cngpijmnt
68+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
69+
70+ cd ../pstocanonij
71+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
72+
73+ cd ../backend
74+ ./autogen.sh --prefix=$out
75+
76+ cd ../backendnet
77+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
78+
79+ cd ../cmdtocanonij
80+ ./autogen.sh --prefix=$out --datadir=$out/share
81+
82+ cd ../cnijbe
83+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
84+
85+ cd ../lgmon2
86+ substituteInPlace src/Makefile.am \
87+ --replace /usr/include/libusb-1.0 \
88+ ${libusb.dev}/include/libusb-1.0
89+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
90+
91+ cd ..;
92+
93+ sed -e "s,cnijlgmon2_LDADD =,cnijlgmon2_LDADD = -L../../com/libs_bin${arch}," \
94+ -i lgmon2/src/Makefile.am || die
95+ '';
96+
97+ preInstall = ''
98+ mkdir -p $out/bin $out/lib/cups/filter $out/share/cups/model;
99+ '';
100+
101+ postInstall = ''
102+ set -o xtrace
103+ for pr in mg2400 mg2500 mg3500 mg5500 mg6400 mg6500 mg7100 p200; do
104+ cd ppd;
105+ ./autogen.sh --prefix=$out --program-suffix=$pr
106+ make clean;
107+ make;
108+ make install;
109+
110+ cd ../cnijfilter;
111+ ./autogen.sh --prefix=$out --program-suffix=$pr --enable-libpath=/var/lib/cups/path/lib/bjlib --enable-binpath=$out/bin;
112+ make clean;
113+ make;
114+ make install;
115+
116+ cd ..;
117+ done;
118+
119+ mkdir -p $out/lib/bjlib;
120+ for pr_id in 423 424 425 426 427 428 429 430; do
121+ install -c -m 755 $pr_id/database/* $out/lib/bjlib;
122+ install -c -s -m 755 $pr_id/libs_bin${arch}/*.so.* $out/lib;
123+ done;
124+
125+ pushd $out/lib;
126+ for so_file in *.so.*; do
127+ ln -s $so_file ''${so_file/.so.*/}.so;
128+ patchelf --set-rpath $out/lib $so_file;
129+ done;
130+ popd;
131+ '';
132+
133+ /* the tarball includes some pre-built shared libraries. we run
134+ 'patchelf --set-rpath' on them just a few lines above, so that
135+ they can find each other. but that's not quite enough. some of
136+ those libraries load each other in non-standard ways -- they
137+ don't list each other in the DT_NEEDED section. so, if the
138+ standard 'patchelf --shrink-rpath' (from
139+ pkgs/development/tools/misc/patchelf/setup-hook.sh) is run on
140+ them, it undoes the --set-rpath. this prevents that. */
141+ dontPatchELF = true;
142+
143+ meta = with lib; {
144+ description = "Canon InkJet printer drivers for the MG2400 MG2500 MG3500 MG5500 MG6400 MG6500 MG7100 and P200 series.";
145+ homepage = https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg5550.aspx?type=drivers&driverdetailid=tcm:13-1094072;
146+ license = licenses.unfree;
147+ platforms = platforms.linux;
148+ maintainers = with maintainers; [ chpatrick ];
149+ };
150+}
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-1-cups-1.6.patchnew file+62
@@ -0,0 +1,62 @@
1+--- a/cngpij/cngpij/bjcups.c
2++++ a/cngpij/cngpij/bjcups.c
3+@@ -698,8 +719,8 @@
4+ else {
5+ pRequest = ippNew();
6+
7+- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
8+- pRequest->request.op.request_id = 1;
9++ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
10++ ippSetRequestId(pRequest, 1);
11+
12+ pLanguage = bjcupsLangDefault(); // cupsLangDefault() -> bjcupsLangDefault() for cups-1.1.19
13+
14+@@ -708,29 +729,29 @@
15+ ippAddString(pRequest, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, NULL);
16+
17+ if ((pResponse = cupsDoRequest(pHTTP, pRequest, "/")) != NULL) {
18+- if (pResponse->request.status.status_code > IPP_OK_CONFLICT) {
19++ if (ippGetStatusCode(pResponse) > IPP_OK_CONFLICT) {
20+ fputs("ERROR: IPP ERROR\n", stderr);
21+ goto onErr;
22+ }
23+ else {
24+- pAttribute = pResponse->attrs;
25++ pAttribute = ippFirstAttribute(pResponse);
26+
27+ while (pAttribute != NULL) {
28+- while (pAttribute != NULL && pAttribute->group_tag != IPP_TAG_PRINTER) {
29+- pAttribute = pAttribute->next;
30++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) != IPP_TAG_PRINTER) {
31++ pAttribute = ippNextAttribute(pResponse);
32+ }
33+ if (pAttribute == NULL) {
34+ break;
35+ }
36+
37+- while (pAttribute != NULL && pAttribute->group_tag == IPP_TAG_PRINTER) {
38+- if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {
39+- pPrinter = pAttribute->values[0].string.text;
40++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) == IPP_TAG_PRINTER) {
41++ if (strcmp(ippGetName(pAttribute), "printer-name") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_NAME) {
42++ pPrinter = ippGetString(pAttribute, 0, NULL);
43+ }
44+- if (strcmp(pAttribute->name, "device-uri") == 0 && pAttribute->value_tag == IPP_TAG_URI) {
45+- pDUri = pAttribute->values[0].string.text;
46++ if (strcmp(ippGetName(pAttribute), "device-uri") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_URI) {
47++ pDUri = ippGetString(pAttribute, 0, NULL);
48+ }
49+- pAttribute = pAttribute->next;
50++ pAttribute = ippNextAttribute(pResponse);
51+ }
52+
53+ if (strcasecmp(pDestName, pPrinter) == 0) {
54+@@ -739,7 +760,7 @@
55+ }
56+
57+ if (pAttribute != NULL)
58+- pAttribute = pAttribute->next;
59++ pAttribute = ippNextAttribute(pResponse);
60+ }
61+ }
62+
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-6-cups-1.6.patchnew file+87
@@ -0,0 +1,87 @@
1+diff --git a/cngpijmnt/src/getipc.c b/cngpijmnt/src/getipc.c
2+index 8688032..54c7933 100755
3+--- a/cngpijmnt/src/getipc.c
4++++ b/cngpijmnt/src/getipc.c
5+@@ -42,7 +42,7 @@ int GetIPCData(LPIPCU pipc, char *sname)
6+ int server_fd;
7+ int client_fd;
8+ char buf[128];
9+- size_t len;
10++ socklen_t len;
11+ short ret = RET_ERROR;
12+
13+ if( (server_fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0 )
14+
15+--- a/cngpijmnt/src/main.c 2016-11-12 23:39:03.534855723 +0100
16++++ b/cngpijmnt/src/main.c 2016-11-12 23:47:02.521847145 +0100
17+@@ -308,8 +308,8 @@
18+ *pResponse; // Pointer to CUPS IPP response.
19+ ipp_attribute_t *pAttribute; // Pointer to CUPS attributes.
20+ cups_lang_t *pLanguage; // Pointer to language.
21+- char *pPrinter = NULL; // Pointer to printer name.
22+- char *pDUri = NULL; // Pointer to Device uri.
23++ const char *pPrinter = NULL; // Pointer to printer name.
24++ const char *pDUri = NULL; // Pointer to Device uri.
25+ short retVal = -1; // Return value.
26+ /*** Parameters end ***/
27+
28+@@ -321,8 +321,8 @@
29+ else {
30+ pRequest = ippNew();
31+
32+- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
33+- pRequest->request.op.request_id = 1;
34++ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
35++ ippSetRequestId(pRequest, 1);
36+
37+ pLanguage = bjcupsLangDefault(); // cupsLangDefault() -> bjcupsLangDefault() for cups-1.1.19
38+
39+@@ -331,29 +331,29 @@
40+ ippAddString(pRequest, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, NULL);
41+
42+ if ((pResponse = cupsDoRequest(pHTTP, pRequest, "/")) != NULL) {
43+- if (pResponse->request.status.status_code > IPP_OK_CONFLICT) {
44++ if (ippGetStatusCode(pResponse) > IPP_OK_CONFLICT) {
45+ fputs("ERROR: IPP ERROR\n", stderr);
46+ goto onErr;
47+ }
48+ else {
49+- pAttribute = pResponse->attrs;
50++ pAttribute = ippFirstAttribute(pResponse);
51+
52+ while (pAttribute != NULL) {
53+- while (pAttribute != NULL && pAttribute->group_tag != IPP_TAG_PRINTER) {
54+- pAttribute = pAttribute->next;
55++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) != IPP_TAG_PRINTER) {
56++ pAttribute = ippNextAttribute(pResponse);
57+ }
58+ if (pAttribute == NULL) {
59+ break;
60+ }
61+
62+- while (pAttribute != NULL && pAttribute->group_tag == IPP_TAG_PRINTER) {
63+- if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {
64+- pPrinter = pAttribute->values[0].string.text;
65++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) == IPP_TAG_PRINTER) {
66++ if (strcmp(ippGetName(pAttribute), "printer-name") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_NAME) {
67++ pPrinter = ippGetString(pAttribute, 0, NULL);
68+ }
69+- if (strcmp(pAttribute->name, "device-uri") == 0 && pAttribute->value_tag == IPP_TAG_URI) {
70+- pDUri = pAttribute->values[0].string.text;
71++ if (strcmp(ippGetName(pAttribute), "device-uri") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_URI) {
72++ pDUri = ippGetString(pAttribute, 0, NULL);
73+ }
74+- pAttribute = pAttribute->next;
75++ pAttribute = ippNextAttribute(pResponse);
76+ }
77+
78+ if (strcasecmp(pDestName, pPrinter) == 0) {
79+@@ -362,7 +362,7 @@
80+ }
81+
82+ if (pAttribute != NULL)
83+- pAttribute = pAttribute->next;
84++ pAttribute = ippNextAttribute(pResponse);
85+ }
86+ }
87+
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-4-ppd.patchnew file+10
@@ -0,0 +1,10 @@
1+--- a/backend/src/cnij_backend_common.c 2016-11-13 00:08:34.600824006 +0100
2++++ a/backend/src/cnij_backend_common.c 2016-11-13 00:08:52.037823694 +0100
3+@@ -37,6 +37,7 @@
4+ // CUPS Header
5+ #include <cups/cups.h>
6+ #include <cups/ipp.h>
7++#include <cups/ppd.h>
8+
9+ // Header file for CANON
10+ #include "cnij_backend_common.h"
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-5-abi_x86_32.patchnew file+45
@@ -0,0 +1,45 @@
1+--- a/backendnet/configure.in 2014-08-11 08:38:46.034984462 +0200
2++++ a/backendnet/configure.in 2014-08-11 08:35:42.902985813 +0200
3+@@ -19,7 +19,11 @@
4+ AC_DEFINE_UNQUOTED(BJLIB_PATH, "$enable_libpath")
5+ AC_SUBST(BJLIB_PATH)
6+
7+-ARC=`getconf LONG_BIT`
8++case "$ABI" in
9++ x86) ARC=32;;
10++ amd64) ARC=64;;
11++ *) ARC=`getconf LONG_BIT`;;
12++esac
13+ AC_SUBST(ARC)
14+
15+ # Checks for programs.
16+--- a/cnijfilter/configure.in 2014-08-11 08:39:44.426984031 +0200
17++++ a/cnijfilter/configure.in 2014-08-11 08:35:19.788985984 +0200
18+@@ -43,7 +43,11 @@
19+ esac
20+ AC_SUBST(CNCL_LIB_ID)
21+
22+-ARC=`getconf LONG_BIT`
23++case "$ABI" in
24++ x86) ARC=32;;
25++ amd64) ARC=64;;
26++ *) ARC=`getconf LONG_BIT`;;
27++esac
28+ AC_SUBST(ARC)
29+
30+ AC_PROG_CC
31+--- a/cnijnpr/configure.in 2014-08-11 08:41:12.712983380 +0200
32++++ a/cnijnpr/configure.in 2014-08-11 08:40:44.354983589 +0200
33+@@ -37,7 +37,11 @@
34+
35+ CFLAGS="-O2"
36+
37+-ARC=`getconf LONG_BIT`
38++case "$ABI" in
39++ x86) ARC=32;;
40++ amd64) ARC=64;;
41++ *) ARC=`getconf LONG_BIT`;;
42++esac
43+ AC_SUBST(ARC)
44+
45+ AC_OUTPUT(Makefile
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-6-headers.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/cnijnpr/src/cnijnpr.c 2016-11-13 21:51:33.844977618 +0100
2++++ a/cnijnpr/src/cnijnpr.c 2016-11-13 21:52:03.129977094 +0100
3+@@ -34,6 +34,8 @@
4+ #include <sys/ioctl.h>
5+ #include <net/if.h>
6+ #include <sys/sysctl.h>
7++#include <sys/types.h>
8++#include <unistd.h>
9+ #include <config.h>
10+ #include <fcntl.h>
11+
pkgs/servers/monitoring/munin/adding_sconfdir_munin-node.patchnew file+41
@@ -0,0 +1,41 @@
1+commit af5fa3623bb9a73052f9154be4a0f38c60ea42a2
2+Author: Kjetil Orbekk <kjetil.orbekk@gmail.com>
3+Date: Thu Nov 23 21:21:36 2017 -0500
4+
5+ node: add --sconfdir to set plugin configuration dir
6+
7+diff --git a/node/sbin/munin-node b/node/sbin/munin-node
8+index 909c8c4e..0ccf3941 100755
9+--- a/node/sbin/munin-node
10++++ b/node/sbin/munin-node
11+@@ -100,9 +100,11 @@ sub parse_args
12+ my @ORIG_ARGV = @ARGV;
13+
14+ my $servicedir_cmdline;
15++ my $sconfdir_cmdline;
16+ print_usage_and_exit() unless GetOptions(
17+ "config=s" => \$conffile,
18+ "servicedir=s" => \$servicedir_cmdline,
19++ "sconfdir=s" => \$sconfdir_cmdline,
20+ "debug!" => \$DEBUG,
21+ "pidebug!" => \$PIDEBUG,
22+ "paranoia!" => \$paranoia,
23+@@ -112,6 +114,7 @@ sub parse_args
24+
25+ # We untaint the args brutally, since the sysadm should know what he does
26+ $servicedir = $1 if defined $servicedir_cmdline && $servicedir_cmdline =~ m/(.*)/;
27++ $sconfdir = $1 if defined $sconfdir_cmdline && $sconfdir_cmdline =~ m/(.*)/;
28+
29+ # Reset ARGV (for HUPing)
30+ @ARGV = @ORIG_ARGV;
31+@@ -175,6 +178,10 @@ Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf]
32+
33+ Override plugin directory [@@CONFDIR@@/plugins/]
34+
35++=item B<< --sconfdir <dir> >>
36++
37++Override plugin configuration directory [@@CONFDIR@@/plugin-conf.d/]
38++
39+ =item B< --[no]paranoia >
40+
41+ Only run plugins owned by root. Check permissions as well. [--noparanoia]
pkgs/servers/monitoring/munin/default.nix+7−4
@@ -3,14 +3,14 @@
33}:
44
55stdenv.mkDerivation rec {
6− version = "2.0.33";
6+ version = "2.0.34";
77 name = "munin-${version}";
88
99 src = fetchFromGitHub {
1010 owner = "munin-monitoring";
1111 repo = "munin";
1212 rev = version;
13− sha256 = "0rs05b7926mjd58sdry33i91m1h3v3svl0wg2gmhljl8wqidac5w";
13+ sha256 = "0mb5m0nc3nr9781d3s99sjdssmvkv37gxyplzr6d73i4hi31m7fr";
1414 };
1515
1616 buildInputs = [
@@ -67,6 +67,9 @@ stdenv.mkDerivation rec {
6767
6868 # https://github.com/munin-monitoring/munin/pull/134
6969 ./adding_servicedir_munin-node.patch
70+
71+ ./adding_sconfdir_munin-node.patch
72+ ./preserve_environment.patch
7073 ];
7174
7275 preBuild = ''
@@ -102,8 +105,8 @@ stdenv.mkDerivation rec {
102105 find "$out/lib/plugins" -type f -print0 | xargs -0 -L1 \
103106 sed -i -e "s|/usr/bin/||g" -e "s|/usr/sbin/||g" -e "s|\<bc\>|${bc}/bin/bc|g"
104107
105− if test -e $out/nix-support/propagated-native-build-inputs; then
106− ln -s $out/nix-support/propagated-native-build-inputs $out/nix-support/propagated-user-env-packages
108+ if test -e $out/nix-support/propagated-build-inputs; then
109+ ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
107110 fi
108111
109112 for file in "$out"/bin/munindoc "$out"/sbin/munin-* "$out"/lib/munin-* "$out"/www/cgi/*; do
pkgs/servers/monitoring/munin/preserve_environment.patchnew file+41
@@ -0,0 +1,41 @@
1+commit d94c29b7397362857b81d8c877a989fdb28490d8
2+Author: Kjetil Orbekk <kjetil.orbekk@gmail.com>
3+Date: Tue Nov 21 15:37:42 2017 -0500
4+
5+ Keep environment variables instead of overwriting them.
6+
7+diff --git a/common/lib/Munin/Common/Defaults.pm b/common/lib/Munin/Common/Defaults.pm
8+index 131f52c0..bbf42697 100644
9+--- a/common/lib/Munin/Common/Defaults.pm
10++++ b/common/lib/Munin/Common/Defaults.pm
11+@@ -71,7 +71,7 @@ sub export_to_environment {
12+
13+ my %defaults = %{$class->get_defaults()};
14+ while (my ($k, $v) = each %defaults) {
15+- $ENV{$k} = $v;
16++ $ENV{$k} = $ENV{$k} || $v;
17+ }
18+
19+ return
20+diff --git a/node/lib/Munin/Node/Service.pm b/node/lib/Munin/Node/Service.pm
21+index 1b4f6114..be58bd77 100644
22+--- a/node/lib/Munin/Node/Service.pm
23++++ b/node/lib/Munin/Node/Service.pm
24+@@ -122,7 +122,7 @@ sub export_service_environment {
25+ # We append the USER to the MUNIN_PLUGSTATE, to avoid CVE-2012-3512
26+ my $uid = $self->_resolve_uid($service);
27+ my $user = getpwuid($uid);
28+- $ENV{MUNIN_PLUGSTATE} = "$Munin::Common::Defaults::MUNIN_PLUGSTATE/$user";
29++ $ENV{MUNIN_PLUGSTATE} = "$ENV{MUNIN_PLUGSTATE}/$user";
30+
31+ # Provide a consistent default state-file.
32+ $ENV{MUNIN_STATEFILE} = "$ENV{MUNIN_PLUGSTATE}/$service-$ENV{MUNIN_MASTER_IP}";
33+@@ -243,7 +243,7 @@ sub exec_service
34+
35+ # XXX - Create the statedir for the user
36+ my $uid = $self->_resolve_uid($service);
37+- Munin::Node::OS->mkdir_subdir("$Munin::Common::Defaults::MUNIN_PLUGSTATE", $uid);
38++ Munin::Node::OS->mkdir_subdir("$ENV{MUNIN_PLUGSTATE}", $uid);
39+
40+ $self->change_real_and_effective_user_and_group($service);
41+
pkgs/servers/traefik/default.nix+7−12
@@ -1,24 +1,19 @@
1−{ stdenv, buildGoPackage, fetchurl, bash, go-bindata}:
1+{ stdenv, buildGoPackage, fetchFromGitHub, bash, go-bindata}:
22
33buildGoPackage rec {
44 name = "traefik-${version}";
5− version = "1.3.8";
5+ version = "1.4.4";
66
77 goPackagePath = "github.com/containous/traefik";
88
9− src = fetchurl {
10− url = "https://github.com/containous/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
11− sha256 = "6fce36dd30bb5ae5f91e69f2950f22fe7a74b920e80c6b441a0721122f6a6174";
9+ src = fetchFromGitHub {
10+ owner = "containous";
11+ repo = "traefik";
12+ rev = "v${version}";
13+ sha256 = "114861v8kg77zwnf742n25h7c4fly3i52inqx1kcpqs074rqm1wn";
1214 };
1315
1416 buildInputs = [ go-bindata bash ];
15− unpackPhase = ''
16− runHook preUnpack
17− mkdir traefik
18− tar -C traefik -xvzf $src
19− export sourceRoot="traefik"
20− runHook postUnpack
21− '';
2217
2318 buildPhase = ''
2419 runHook preBuild
pkgs/servers/x11/xorg/builder.sh+11−15
@@ -16,22 +16,18 @@ postInstall() {
1616
1717 echo "propagating requisites $requires"
1818
19+ if test -n "$crossConfig"; then
20+ local pkgs=("${crossPkgs[@]}")
21+ else
22+ local pkgs=("${nativePkgs[@]}")
23+ fi
1924 for r in $requires; do
20− if test -n "$crossConfig"; then
21− for p in "${crossPkgs[@]}"; do
22− if test -e $p/lib/pkgconfig/$r.pc; then
23− echo " found requisite $r in $p"
24− propagatedBuildInputs="$propagatedBuildInputs $p"
25− fi
26− done
27− else
28− for p in "${nativePkgs[@]}"; do
29− if test -e $p/lib/pkgconfig/$r.pc; then
30− echo " found requisite $r in $p"
31− propagatedNativeBuildInputs="$propagatedNativeBuildInputs $p"
32− fi
33− done
34− fi
25+ for p in "${pkgs[@]}"; do
26+ if test -e $p/lib/pkgconfig/$r.pc; then
27+ echo " found requisite $r in $p"
28+ propagatedBuildInputs+=" $p"
29+ fi
30+ done
3531 done
3632}
3733
pkgs/stdenv/generic/setup.sh+30−43
@@ -239,12 +239,12 @@ isScript() {
239239
240240# printf unfortunately will print a trailing newline regardless
241241printLines() {
242− [[ "$#" -gt 0 ]] || return 0
242+ (( "$#" > 0 )) || return 0
243243 printf '%s\n' "$@"
244244}
245245
246246printWords() {
247− [[ "$#" -gt 0 ]] || return 0
247+ (( "$#" > 0 )) || return 0
248248 printf '%s ' "$@"
249249}
250250
@@ -302,9 +302,9 @@ runHook addInputsHook
302302
303303# Recursively find all build inputs.
304304findInputs() {
305− local pkg="$1"
306− local var="$2"
307− local propagatedBuildInputsFile="$3"
305+ local pkg="$1"; shift
306+ local var="$1"; shift
307+ local propagatedBuildInputsFiles=("$@")
308308
309309 # TODO(@Ericson2314): Restore using associative array once Darwin
310310 # nix-shell doesn't use impure bash. This should replace the O(n)
@@ -324,12 +324,16 @@ findInputs() {
324324 exit 1
325325 fi
326326
327− if [ -f "$pkg/nix-support/$propagatedBuildInputsFile" ]; then
327+ local file
328+ for file in "${propagatedBuildInputsFiles[@]}"; do
329+ file="$pkg/nix-support/$file"
330+ [[ -f "$file" ]] || continue
331+
328332 local pkgNext
329− for pkgNext in $(< "$pkg/nix-support/$propagatedBuildInputsFile"); do
330− findInputs "$pkgNext" "$var" "$propagatedBuildInputsFile"
333+ for pkgNext in $(< "$file"); do
334+ findInputs "$pkgNext" "$var" "${propagatedBuildInputsFiles[@]}"
331335 done
332− fi
336+ done
333337}
334338
335339# Add package to the future PATH and run setup hooks
@@ -362,26 +366,21 @@ if [ -z "${crossConfig:-}" ]; then
362366 for i in ${nativeBuildInputs:-} ${buildInputs:-} \
363367 ${defaultNativeBuildInputs:-} ${defaultBuildInputs:-} \
364368 ${propagatedNativeBuildInputs:-} ${propagatedBuildInputs:-}; do
365− findInputs "$i" nativePkgs propagated-native-build-inputs
366− done
367−
368− for i in "${nativePkgs[@]}"; do
369− activatePackage "$i"
369+ findInputs "$i" nativePkgs propagated-native-build-inputs propagated-build-inputs
370370 done
371371else
372− for i in ${buildInputs:-} ${defaultBuildInputs:-} ${propagatedBuildInputs:-}; do
373− findInputs "$i" crossPkgs propagated-build-inputs
374− done
375−
376372 for i in ${nativeBuildInputs:-} ${defaultNativeBuildInputs:-} ${propagatedNativeBuildInputs:-}; do
377373 findInputs "$i" nativePkgs propagated-native-build-inputs
378374 done
379−
380− for i in "${nativePkgs[@]}" "${crossPkgs[@]}"; do
381− activatePackage "$i"
375+ for i in ${buildInputs:-} ${defaultBuildInputs:-} ${propagatedBuildInputs:-}; do
376+ findInputs "$i" crossPkgs propagated-build-inputs
382377 done
383378fi
384379
380+for i in ${nativePkgs+"${nativePkgs[@]}"} ${crossPkgs+"${crossPkgs[@]}"}; do
381+ activatePackage "$i"
382+done
383+
385384
386385# Set the relevant environment variables to point to the build inputs
387386# found above.
@@ -898,31 +897,19 @@ fixupPhase() {
898897
899898 # Propagate build inputs and setup hook into the development output.
900899
901− if [ -z "${crossConfig:-}" ]; then
902− # Not cross-compiling - propagatedBuildInputs are handled identically to propagatedNativeBuildInputs
903− local propagated="$propagatedNativeBuildInputs"
904− if [ -n "${propagatedBuildInputs:-}" ]; then
905− propagated+="${propagated:+ }$propagatedBuildInputs"
906− fi
907− if [ -n "${propagated:-}" ]; then
908− mkdir -p "${!outputDev}/nix-support"
909− # shellcheck disable=SC2086
910− printWords $propagated > "${!outputDev}/nix-support/propagated-native-build-inputs"
911− fi
912− else
913− if [ -n "${propagatedBuildInputs:-}" ]; then
914− mkdir -p "${!outputDev}/nix-support"
915− # shellcheck disable=SC2086
916− printWords $propagatedBuildInputs > "${!outputDev}/nix-support/propagated-build-inputs"
917− fi
900+ if [ -n "${propagatedBuildInputs:-}" ]; then
901+ mkdir -p "${!outputDev}/nix-support"
902+ # shellcheck disable=SC2086
903+ printWords $propagatedBuildInputs > "${!outputDev}/nix-support/propagated-build-inputs"
904+ fi
918905
919− if [ -n "${propagatedNativeBuildInputs:-}" ]; then
920− mkdir -p "${!outputDev}/nix-support"
921− # shellcheck disable=SC2086
922− printWords $propagatedNativeBuildInputs > "${!outputDev}/nix-support/propagated-native-build-inputs"
923− fi
906+ if [ -n "${propagatedNativeBuildInputs:-}" ]; then
907+ mkdir -p "${!outputDev}/nix-support"
908+ # shellcheck disable=SC2086
909+ printWords $propagatedNativeBuildInputs > "${!outputDev}/nix-support/propagated-native-build-inputs"
924910 fi
925911
912+
926913 if [ -n "${setupHook:-}" ]; then
927914 mkdir -p "${!outputDev}/nix-support"
928915 substituteAll "$setupHook" "${!outputDev}/nix-support/setup-hook"
pkgs/tools/filesystems/ceph/generic.nix+2−2
@@ -227,9 +227,9 @@ stdenv.mkDerivation {
227227 wrapProgram $out/sbin/ceph-create-keys ${wrapArgs}
228228 wrapProgram $out/sbin/ceph-disk ${wrapArgs}
229229
230− # Bring in lib as a native build input
230+ # Bring in lib as a run-time dependency
231231 mkdir -p $out/nix-support
232− echo "$lib" > $out/nix-support/propagated-native-build-inputs
232+ echo "$lib" > $out/nix-support/propagated-build-inputs
233233
234234 # Fix the python library loading
235235 find $lib/lib -name \*.pyc -or -name \*.pyd -exec rm {} \;
pkgs/tools/misc/hdf5/1_8.nixnew file+76
@@ -0,0 +1,76 @@
1+{ stdenv
2+, fetchurl
3+, gcc
4+, removeReferencesTo
5+, cpp ? false
6+, gfortran ? null
7+, fortran2003 ? false
8+, zlib ? null
9+, szip ? null
10+, mpi ? null
11+, enableShared ? true
12+}:
13+
14+# cpp and mpi options are mutually exclusive
15+# (--enable-unsupported could be used to force the build)
16+assert !cpp || mpi == null;
17+
18+# Need a Fortran compiler for Fortran2003 bindings
19+assert fortran2003 -> gfortran != null;
20+
21+# No point splitting version 1.8.18 into multiple outputs.
22+# The library /lib/libhdf5.so has a reference to gcc-wrapper
23+
24+let inherit (stdenv.lib) optional optionals; in
25+
26+stdenv.mkDerivation rec {
27+ version = "1.8.19";
28+ name = "hdf5-${version}";
29+ src = fetchurl {
30+ url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/${name}/src/${name}.tar.bz2";
31+ sha256 = "0f3jfbqpaaq21ighi40qzs52nb52kc2d2yjk541rjmsx20b3ih2r" ;
32+ };
33+
34+ passthru = {
35+ mpiSupport = (mpi != null);
36+ inherit mpi;
37+ };
38+
39+ nativeBuildInputs = [ removeReferencesTo ];
40+
41+ buildInputs = []
42+ ++ optional (gfortran != null) gfortran
43+ ++ optional (szip != null) szip;
44+
45+ propagatedBuildInputs = []
46+ ++ optional (zlib != null) zlib
47+ ++ optional (mpi != null) mpi;
48+
49+ configureFlags = []
50+ ++ optional cpp "--enable-cxx"
51+ ++ optional (gfortran != null) "--enable-fortran"
52+ ++ optional fortran2003 "--enable-fortran2003"
53+ ++ optional (szip != null) "--with-szlib=${szip}"
54+ ++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"]
55+ ++ optional enableShared "--enable-shared";
56+
57+ patches = [./bin-mv.patch];
58+
59+ postInstall = ''
60+ find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
61+ '';
62+
63+ meta = {
64+ description = "Data model, library, and file format for storing and managing data";
65+ longDescription = ''
66+ HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
67+ I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
68+ applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
69+ applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
70+ '';
71+ license = stdenv.lib.licenses.free; # BSD-like
72+ homepage = https://www.hdfgroup.org/HDF5/;
73+ platforms = stdenv.lib.platforms.unix;
74+ broken = (gfortran != null) && stdenv.isDarwin;
75+ };
76+}
pkgs/tools/misc/hdf5/default.nix+5−8
@@ -14,17 +14,14 @@
1414# (--enable-unsupported could be used to force the build)
1515assert !cpp || mpi == null;
1616
17−# No point splitting version 1.8.18 into multiple outputs.
18−# The library /lib/libhdf5.so has a reference to gcc-wrapper
19−
2017let inherit (stdenv.lib) optional optionals; in
2118
2219stdenv.mkDerivation rec {
23− version = "1.8.18";
20+ version = "1.10.1";
2421 name = "hdf5-${version}";
2522 src = fetchurl {
26− url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/${name}/src/${name}.tar.bz2";
27− sha256 = "13542vrnl1p35n8vbq0wzk40vddmm33q5nh04j98c7r1yjnxxih1";
23+ url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/${name}/src/${name}.tar.bz2";
24+ sha256 = "1wpbi15za7kbsvih88kfcxblw412pjndl16x88dgnqr47piy2p4w";
2825 };
2926
3027 passthru = {
@@ -59,8 +56,8 @@ stdenv.mkDerivation rec {
5956 description = "Data model, library, and file format for storing and managing data";
6057 longDescription = ''
6158 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
62− I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
63− applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
59+ I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
60+ applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
6461 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
6562 '';
6663 license = stdenv.lib.licenses.free; # BSD-like
pkgs/tools/misc/system-config-printer/default.nix+1−2
@@ -28,8 +28,7 @@ stdenv.mkDerivation rec {
2828
2929 nativeBuildInputs = [ wrapGAppsHook ];
3030
31− pythonPath = with pythonPackages;
32− [ pycups pycurl dbus-python pygobject3 requests pycairo pysmbc ];
31+ pythonPath = with pythonPackages; requiredPythonModules [ pycups pycurl dbus-python pygobject3 requests pycairo pysmbc ];
3332
3433 configureFlags =
3534 [ "--with-udev-rules"
pkgs/tools/system/minijail/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchgit, libcap }:
2+
3+stdenv.mkDerivation rec {
4+ shortname = "minijail";
5+ name = "${shortname}-${version}";
6+ version = "android-8.0.0_r34";
7+
8+ src = fetchgit {
9+ url = "https://android.googlesource.com/platform/external/minijail";
10+ rev = version;
11+ sha256 = "1d0q08cgks6h6ffsw3zw8dz4rm9y2djj2pwwy3xi6flx7vwy0psf";
12+ };
13+
14+ buildInputs = [ libcap ];
15+
16+ makeFlags = [ "LIBDIR=$(out)/lib" ];
17+
18+ preConfigure = ''
19+ substituteInPlace common.mk --replace /bin/echo echo
20+ sed -i '/#include <asm\/siginfo.h>/ d' signal_handler.c
21+ '';
22+
23+ installPhase = ''
24+ mkdir -p $out/lib
25+ cp -v *.so $out/lib
26+ mkdir -p $out/include
27+ cp -v libminijail.h $out/include
28+ mkdir -p $out/bin
29+ cp minijail0 $out/bin
30+ '';
31+
32+ meta = {
33+ homepage = https://android.googlesource.com/platform/external/minijail/;
34+ description = "Sandboxing library and application using Linux namespaces and capabilities";
35+ license = stdenv.lib.licenses.bsd3;
36+ maintainers = with stdenv.lib.maintainers; [pcarrier];
37+ platforms = stdenv.lib.platforms.linux;
38+ };
39+}
pkgs/top-level/all-packages.nix+16−1
@@ -2590,6 +2590,12 @@ with pkgs;
25902590 mpi = null;
25912591 };
25922592
2593+ hdf5_1_8 = callPackage ../tools/misc/hdf5/1_8.nix {
2594+ gfortran = null;
2595+ szip = null;
2596+ mpi = null;
2597+ };
2598+
25932599 hdf5-mpi = appendToName "mpi" (hdf5.override {
25942600 szip = null;
25952601 mpi = pkgs.openmpi;
@@ -3376,6 +3382,8 @@ with pkgs;
33763382
33773383 miniball = callPackage ../development/libraries/miniball { };
33783384
3385+ minijail = callPackage ../tools/system/minijail { };
3386+
33793387 minixml = callPackage ../development/libraries/minixml { };
33803388
33813389 mir-qualia = callPackage ../tools/text/mir-qualia {
@@ -6595,6 +6603,7 @@ with pkgs;
65956603 octaveFull = (lowPrio (callPackage ../development/interpreters/octave {
65966604 qt = qt4;
65976605 overridePlatforms = ["x86_64-linux" "x86_64-darwin"];
6606+ openblas = if stdenv.isDarwin then openblasCompat else openblas;
65986607 }));
65996608
66006609 ocropus = callPackage ../applications/misc/ocropus { };
@@ -9776,7 +9785,7 @@ with pkgs;
97769785 # the hook to find catalogs is hidden by buildEnv
97779786 postBuild = ''
97789787 mkdir "$out/nix-support"
9779− cp '${libxml2.dev}/nix-support/propagated-native-build-inputs' "$out/nix-support/"
9788+ cp '${libxml2.dev}/nix-support/propagated-build-inputs' "$out/nix-support/"
97809789 '';
97819790 };
97829791
@@ -18079,6 +18088,8 @@ with pkgs;
1807918088
1808018089 privateer = callPackage ../games/privateer { };
1808118090
18091+ pysolfc = callPackage ../games/pysolfc { };
18092+
1808218093 qweechat = callPackage ../applications/networking/irc/qweechat { };
1808318094
1808418095 qqwing = callPackage ../games/qqwing { };
@@ -19233,6 +19244,10 @@ with pkgs;
1923319244 # this driver ships with pre-compiled 32-bit binary libraries
1923419245 cnijfilter_2_80 = callPackage_i686 ../misc/cups/drivers/cnijfilter_2_80 { };
1923519246
19247+ cnijfilter_4_00 = callPackage ../misc/cups/drivers/cnijfilter_4_00 {
19248+ libusb = libusb1;
19249+ };
19250+
1923619251 cnijfilter2 = callPackage ../misc/cups/drivers/cnijfilter2 {
1923719252 libusb = libusb1;
1923819253 };
pkgs/top-level/lua-packages.nix+2−2
@@ -655,13 +655,13 @@ let
655655
656656 vicious = stdenv.mkDerivation rec {
657657 name = "vicious-${version}";
658− version = "2.2.0";
658+ version = "2.3.0";
659659
660660 src = fetchFromGitHub {
661661 owner = "Mic92";
662662 repo = "vicious";
663663 rev = "v${version}";
664− sha256 = "0dhy0vklrhqrnmxb9pyqbfvkwwy86lwysk93pzg1j1zwprx366fj";
664+ sha256 = "1mrd8c46ljilag8dljvnagaxnjnab8bmg9mcbnwvrivgjzgf6a1k";
665665 };
666666
667667 buildInputs = [ lua ];
pkgs/top-level/python-packages.nix+96−99
@@ -31,10 +31,9 @@ let
3131
3232 callPackage = pkgs.newScope self;
3333
34− bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
34+ namePrefix = python.libPrefix + "-";
3535
36− mkPythonDerivation = makeOverridable( callPackage ../development/interpreters/python/mk-python-derivation.nix {
37− });
36+ bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
3837
3938 # Derivations built with `buildPythonPackage` can already be overriden with `override`, `overrideAttrs`, and `overrideDerivation`.
4039 # This function introduces `overridePythonAttrs` and it overrides the call to `buildPythonPackage`.
@@ -52,13 +51,20 @@ let
5251 }
5352 else ff;
5453
55− buildPythonPackage = makeOverridablePythonPackage (callPackage ../development/interpreters/python/build-python-package.nix {
56− inherit mkPythonDerivation;
54+ buildPythonPackage = makeOverridablePythonPackage ( makeOverridable (callPackage ../development/interpreters/python/build-python-package.nix {
5755 inherit bootstrapped-pip;
5856 flit = self.flit;
59− });
57+ # We want Python libraries to be named like e.g. "python3.6-${name}"
58+ inherit namePrefix;
59+ pythonModule = python;
60+ }));
6061
61− buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args );
62+ buildPythonApplication = makeOverridablePythonPackage ( makeOverridable (callPackage ../development/interpreters/python/build-python-package.nix {
63+ inherit bootstrapped-pip;
64+ flit = self.flit;
65+ namePrefix = "";
66+ pythonModule = false;
67+ }));
6268
6369 graphiteVersion = "1.0.2";
6470
@@ -80,10 +86,40 @@ let
8086 else throw "Unsupported kind ${kind}");
8187 in fetcher (builtins.removeAttrs attrs ["format"]) );
8288
89+ # Check whether a derivation provides a Python module.
90+ hasPythonModule = drv: (hasAttr "pythonModule" drv) && ( (getAttr "pythonModule" drv) == python);
91+
92+ # Get list of required Python modules given a list of derivations.
93+ requiredPythonModules = drvs: let
94+ filterNull = list: filter (x: !isNull x) list;
95+ conditionalGetRecurse = attr: condition: drv: let f = conditionalGetRecurse attr condition; in
96+ (if (condition drv) then unique [drv]++(concatMap f (filterNull(getAttr attr drv))) else []);
97+ _required = drv: conditionalGetRecurse "propagatedBuildInputs" hasPythonModule drv;
98+ in [python] ++ (unique (concatMap _required (filterNull drvs)));
99+
100+ # Create a PYTHONPATH from a list of derivations. This function recurses into the items to find derivations
101+ # providing Python modules.
102+ makePythonPath = drvs: stdenv.lib.makeSearchPath python.sitePackages (requiredPythonModules drvs);
103+
104+ # Convert derivation to a Python module.
105+ toPythonModule = drv:
106+ drv.overrideAttrs( oldAttrs: {
107+ # Use passthru in order to prevent rebuilds when possible.
108+ passthru = (oldAttrs.passthru or {})// {
109+ name = namePrefix + oldAttrs.name;
110+ pythonModule = python;
111+ pythonPath = [ ]; # Deprecated, for compatibility.
112+ };
113+ });
114+
115+ disabledIf = x: drv:
116+ if x then throw "${removePrefix namePrefix (drv.pname or drv.name)} not supported for interpreter ${python.executable}" else drv;
117+
83118in {
84119
85− inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k mkPythonDerivation buildPythonPackage buildPythonApplication;
120+ inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPyPy isPy3k buildPythonPackage buildPythonApplication;
86121 inherit fetchPypi callPackage;
122+ inherit hasPythonModule requiredPythonModules makePythonPath disabledIf;
87123
88124 # helpers
89125
@@ -154,9 +190,7 @@ in {
154190
155191 breathe = callPackage ../development/python-modules/breathe { };
156192
157− browsermob-proxy = if ! isPy3k then
158− callPackage ../development/python-modules/browsermob-proxy {}
159− else throw "browsermob-proxy is not supported for ${python.executable}";
193+ browsermob-proxy = disabledIf isPy3k (callPackage ../development/python-modules/browsermob-proxy {});
160194
161195 bugseverywhere = callPackage ../applications/version-management/bugseverywhere {};
162196
@@ -222,11 +256,11 @@ in {
222256
223257 pyamf = callPackage ../development/python-modules/pyamf { };
224258
225− pyatspi = if isPy3k then callPackage ../development/python-modules/pyatspi { } else throw "pyatspi not supported for interpreter ${python.executable}";
259+ pyatspi = disabledIf (!isPy3k) (callPackage ../development/python-modules/pyatspi { });
226260
227261 pycairo = callPackage ../development/python-modules/pycairo { };
228262
229− pycangjie = if isPy3k then callPackage ../development/python-modules/pycangjie { } else throw "pycangjie not supported for interpreter ${python.executable}";
263+ pycangjie = disabledIf (!isPy3k) (callPackage ../development/python-modules/pycangjie { });
230264
231265 pycrypto = callPackage ../development/python-modules/pycrypto { };
232266
@@ -236,7 +270,7 @@ in {
236270
237271 PyChromecast = callPackage ../development/python-modules/pychromecast { };
238272
239− pyexiv2 = if (!isPy3k) then callPackage ../development/python-modules/pyexiv2 {} else throw "pyexiv2 not supported for interpreter ${python.executable}";
273+ pyexiv2 = disabledIf isPy3k (callPackage ../development/python-modules/pyexiv2 {});
240274
241275 py3exiv2 = callPackage ../development/python-modules/py3exiv2 { };
242276
@@ -298,13 +332,13 @@ in {
298332
299333 PyWebDAV = callPackage ../development/python-modules/pywebdav { };
300334
301− pyxml = if !isPy3k then callPackage ../development/python-modules/pyxml{ } else throw "pyxml not supported for interpreter ${python.executable}";
335+ pyxml = disabledIf isPy3k (callPackage ../development/python-modules/pyxml{ });
302336
303337 relatorio = callPackage ../development/python-modules/relatorio { };
304338
305339 pyzufall = callPackage ../development/python-modules/pyzufall { };
306340
307− rhpl = if !isPy3k then callPackage ../development/python-modules/rhpl {} else throw "rhpl not supported for interpreter ${python.executable}";
341+ rhpl = disabledIf isPy3k (callPackage ../development/python-modules/rhpl {});
308342
309343 simpleeval = callPackage ../development/python-modules/simpleeval { };
310344
@@ -1336,10 +1370,10 @@ in {
13361370
13371371 # Build boost for this specific Python version
13381372 # TODO: use separate output for libboost_python.so
1339− boost = pkgs.boost.override {
1373+ boost = toPythonModule (pkgs.boost.override {
13401374 inherit (self) python numpy;
13411375 enablePython = true;
1342− };
1376+ });
13431377
13441378 buttersink = buildPythonPackage rec {
13451379 name = "buttersink-0.6.8";
@@ -3200,15 +3234,15 @@ in {
32003234 propagatedBuildInputs = with self; [ pyusb ];
32013235 };
32023236
3203− opencv = pkgs.opencv.override {
3237+ opencv = toPythonModule (pkgs.opencv.override {
32043238 enablePython = true;
32053239 pythonPackages = self;
3206− };
3240+ });
32073241
3208− opencv3 = pkgs.opencv3.override {
3242+ opencv3 = toPythonModule (pkgs.opencv3.override {
32093243 enablePython = true;
32103244 pythonPackages = self;
3211− };
3245+ });
32123246
32133247 openidc-client = callPackage ../development/python-modules/openidc-client/default.nix {};
32143248
@@ -4735,13 +4769,11 @@ in {
47354769
47364770 easy-thumbnails = callPackage ../development/python-modules/easy-thumbnails { };
47374771
4738− eccodes = if (isPy27) then
4739− (pkgs.eccodes.overrideAttrs (oldattrs: {
4740− name = "${python.libPrefix}-" + oldattrs.name;
4741− })).override {
4742− enablePython = true;
4743− pythonPackages = self;
4744− } else throw "eccodes not supported for interpreter ${python.executable}";
4772+ eccodes = disabledIf (!isPy27)
4773+ (toPythonModule (pkgs.eccodes.override {
4774+ enablePython = true;
4775+ pythonPackages = self;
4776+ }));
47454777
47464778 EditorConfig = buildPythonPackage rec {
47474779 name = "EditorConfig-${version}";
@@ -8712,10 +8744,10 @@ in {
87128744
87138745 folium = callPackage ../development/python-modules/folium { };
87148746
8715− fontforge = pkgs.fontforge.override {
8747+ fontforge = toPythonModule (pkgs.fontforge.override {
87168748 withPython = true;
87178749 inherit python;
8718− };
8750+ });
87198751
87208752 fonttools = callPackage ../development/python-modules/fonttools { };
87218753
@@ -8889,11 +8921,9 @@ in {
88898921 };
88908922 };
88918923
8892− gdal = (pkgs.gdal.overrideDerivation (oldattrs: {
8893− name = "${python.libPrefix}-" + oldattrs.name;
8894− })).override {
8924+ gdal = toPythonModule (pkgs.gdal.override {
88958925 pythonPackages = self;
8896− };
8926+ });
88978927
88988928 gdrivefs = buildPythonPackage rec {
88998929 version = "0.14.8";
@@ -9265,13 +9295,11 @@ in {
92659295 };
92669296 };
92679297
9268− grib-api = if (isPy27) then
9269− (pkgs.grib-api.overrideAttrs (oldattrs: {
9270− name = "${python.libPrefix}-" + oldattrs.name;
9271− })).override {
9272− enablePython = true;
9273− pythonPackages = self;
9274− } else throw "grib-api not supported for interpreter ${python.executable}";
9298+ grib-api = disabledIf (!isPy27) (toPythonModule
9299+ (pkgs.grib-api.override {
9300+ enablePython = true;
9301+ pythonPackages = self;
9302+ }));
92759303
92769304 gspread = buildPythonPackage rec {
92779305 version = "0.2.3";
@@ -10373,14 +10401,14 @@ in {
1037310401 inherit (pkgs) libsodium;
1037410402 };
1037510403
10376− libplist = if isPy3k then throw "libplist not supported for interpreter ${python.executable}" else
10377− (pkgs.libplist.override{python2Packages=self; }).py;
10404+ libplist = disabledIf isPy3k
10405+ (toPythonModule (pkgs.libplist.override{python2Packages=self; })).py;
1037810406
10379− libxml2 = if isPy3k then throw "libxml2 not supported for interpreter ${python.executable}" else
10380− (pkgs.libxml2.override{pythonSupport=true; python2=python;}).py;
10407+ libxml2 = disabledIf isPy3k
10408+ (toPythonModule (pkgs.libxml2.override{pythonSupport=true; python2=python;})).py;
1038110409
10382− libxslt = if isPy3k then throw "libxslt not supported for interpreter ${python.executable}" else
10383− (pkgs.libxslt.override{pythonSupport=true; python2=python; inherit (self) libxml2;}).py;
10410+ libxslt = disabledIf isPy3k
10411+ (toPythonModule (pkgs.libxslt.override{pythonSupport=true; python2=python; inherit (self) libxml2;})).py;
1038410412
1038510413 limnoria = buildPythonPackage rec {
1038610414 name = "limnoria-${version}";
@@ -10436,22 +10464,7 @@ in {
1043610464 fuse = pkgs.fuse; # use "real" fuse, not the python module
1043710465 };
1043810466
10439− locustio = buildPythonPackage rec {
10440− name = "locustio-0.7.2";
10441−
10442− src = pkgs.fetchurl {
10443− url = "mirror://pypi/l/locustio/${name}.tar.gz";
10444− sha256 = "c9ca6fdfe6a6fb187a3d54ddf9b1518196348e8f20537f0a14ca81a264ffafa2";
10445− };
10446−
10447− propagatedBuildInputs = [ self.msgpack self.requests self.flask self.gevent self.pyzmq ];
10448− buildInputs = [ self.mock self.unittest2 ];
10449−
10450− meta = {
10451− homepage = http://locust.io/;
10452− description = "A load testing tool";
10453− };
10454− };
10467+ locustio = callPackage ../development/python-modules/locustio { };
1045510468
1045610469 llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_4;};
1045710470
@@ -14853,31 +14866,13 @@ in {
1485314866
1485414867 psd-tools = callPackage ../development/python-modules/psd-tools { };
1485514868
14856− psutil = buildPythonPackage rec {
14857− name = "psutil-${version}";
14858− version = "4.3.0";
14859−
14860− src = pkgs.fetchurl {
14861− url = "mirror://pypi/p/psutil/${name}.tar.gz";
14862− sha256 = "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6";
14863− };
14864−
14865− # Certain tests fail due to being in a chroot.
14866− # See also the older issue: https://code.google.com/p/psutil/issues/detail?id=434
14867− doCheck = false;
14868−
14869− buildInputs = with self; [ mock ] ++ optionals stdenv.isDarwin [ pkgs.darwin.IOKit ];
14869+ psutil = callPackage ../development/python-modules/psutil { };
1487014870
14871− meta = {
14872− description = "Process and system utilization information interface for python";
14873− homepage = https://github.com/giampaolo/psutil;
14874− };
14875− };
14876−
14877− psutil_1 = self.psutil.overrideDerivation (self: rec {
14878− name = "psutil-1.2.1";
14879− src = pkgs.fetchurl {
14880− url = "mirror://pypi/p/psutil/${name}.tar.gz";
14871+ psutil_1 = self.psutil.overrideAttrs (oldAttrs: rec {
14872+ name = "${oldAttrs.pname}-${version}";
14873+ version = "1.2.1";
14874+ src = oldAttrs.src.override {
14875+ inherit version;
1488114876 sha256 = "0ibclqy6a4qmkjhlk3g8jhpvnk0v9aywknc61xm3hfi5r124m3jh";
1488214877 };
1488314878 });
@@ -16994,9 +16989,8 @@ in {
1699416989 };
1699516990 };
1699616991
16997− qscintilla = if isPy3k || isPyPy
16998− then throw "qscintilla-${pkgs.qscintilla.version} not supported for interpreter ${python.executable}"
16999− else buildPythonPackage rec {
16992+ qscintilla = disabledIf (isPy3k || isPyPy)
16993+ (buildPythonPackage rec {
1700016994 # TODO: Qt5 support
1700116995 name = "qscintilla-${version}";
1700216996 version = pkgs.qscintilla.version;
@@ -17025,7 +17019,7 @@ in {
1702517019 maintainers = with maintainers; [ danbst ];
1702617020 platforms = platforms.linux;
1702717021 };
17028− };
17022+ });
1702917023
1703017024
1703117025 qserve = buildPythonPackage rec {
@@ -17173,6 +17167,10 @@ in {
1717317167
1717417168 readme_renderer = callPackage ../development/python-modules/readme_renderer { };
1717517169
17170+ rivet = disabledIf isPy3k (toPythonModule (pkgs.rivet.override {
17171+ python2 = python;
17172+ }));
17173+
1717617174 rjsmin = callPackage ../development/python-modules/rjsmin { };
1717717175
1717817176 pysolr = buildPythonPackage rec {
@@ -17444,7 +17442,7 @@ in {
1744417442
1744517443 rply = callPackage ../development/python-modules/rply/default.nix {};
1744617444
17447− rpm = (pkgs.rpm.override{inherit python;});
17445+ rpm = toPythonModule (pkgs.rpm.override{inherit python;});
1744817446
1744917447 rpmfluff = callPackage ../development/python-modules/rpmfluff {};
1745017448
@@ -22093,7 +22091,7 @@ EOF
2209322091 };
2209422092
2209522093 # For backwards compatibility. Please use nixpkgs.udiskie instead.
22096− udiskie = pkgs.udiskie.override { pythonPackages = self; };
22094+ udiskie = toPythonModule (pkgs.udiskie.override { pythonPackages = self; });
2209722095
2209822096 # Should be bumped along with EFL!
2209922097 pythonefl = buildPythonPackage rec {
@@ -24355,9 +24353,8 @@ EOF
2435524353 ROPGadget = callPackage ../development/python-modules/ROPGadget { };
2435624354
2435724355 # We need "normal" libxml2 and not the python package by the same name.
24358− pywbem = if !(isPy36)
24359− then callPackage ../development/python-modules/pywbem { libxml2 = pkgs.libxml2; }
24360− else throw "pywbem not supported for interpreter ${python.executable}";
24356+ pywbem = disabledIf isPy36
24357+ (callPackage ../development/python-modules/pywbem { libxml2 = pkgs.libxml2; });
2436124358
2436224359 unicorn = callPackage ../development/python-modules/unicorn { };
2436324360
@@ -24429,8 +24426,8 @@ EOF
2442924426
2443024427 zeep = callPackage ../development/python-modules/zeep { };
2443124428
24432− zeitgeist = if isPy3k then throw "zeitgeist not supported for interpreter ${python.executable}" else
24433− (pkgs.zeitgeist.override{python2Packages=self;}).py;
24429+ zeitgeist = disabledIf isPy3k
24430+ (toPythonModule (pkgs.zeitgeist.override{python2Packages=self;})).py;
2443424431
2443524432 zeroconf = callPackage ../development/python-modules/zeroconf { };
2443624433