mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
buildPythonPackage: fix standalone applications using it
This commit is contained in:
parent
99a64da600
commit
704c8bab41
22 changed files with 88 additions and 216 deletions
|
@ -10,7 +10,7 @@ pythonPackages.buildPythonPackage rec {
|
||||||
sha256 = "0hhdss4i5436dj37pndxk81a4g3g8f6zqjyv04lhpqcww01290as";
|
sha256 = "0hhdss4i5436dj37pndxk81a4g3g8f6zqjyv04lhpqcww01290as";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ mopidy ];
|
propagatedBuildInputs = with pythonPackages; [ mopidy configobj ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ stdenv, pythonPackages, fetchgit }:
|
{ stdenv, pythonPackages, fetchgit }:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
pythonPackages.buildPythonPackage rec {
|
||||||
name = "leo-editor-${version}";
|
name = "leo-editor-${version}";
|
||||||
version = "5.1";
|
|
||||||
|
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
version = "5.1";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/leo-editor/leo-editor";
|
url = "https://github.com/leo-editor/leo-editor";
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
{ stdenv, fetchsvn, buildPythonPackage, python, pyGtkGlade, makeWrapper, pyexiv2, lxml, pil, fbida, which }:
|
{ stdenv, fetchsvn, buildPythonPackage, python, pyGtkGlade, makeWrapper, pyexiv2, pythonPackages, fbida, which }:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage rec {
|
||||||
name = "jbrout-338";
|
name = "jbrout-${version}";
|
||||||
version = "338";
|
version = "338";
|
||||||
|
|
||||||
src = fetchsvn {
|
src = fetchsvn {
|
||||||
url = "http://jbrout.googlecode.com/svn/trunk";
|
url = "http://jbrout.googlecode.com/svn/trunk";
|
||||||
rev = "338";
|
rev = version;
|
||||||
sha256 = "0257ni4vkxgd0qhs73fw5ppw1qpf11j8fgwsqc03b1k1yv3hk4hf";
|
sha256 = "0257ni4vkxgd0qhs73fw5ppw1qpf11j8fgwsqc03b1k1yv3hk4hf";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
# XXX: preConfigure to avoid this
|
|
||||||
|
# XXX: patchPhase to avoid this
|
||||||
# File "/nix/store/vnyjxn6h3rbrn49m25yyw7i1chlxglhw-python-2.7.1/lib/python2.7/zipfile.py", line 348, in FileHeader
|
# File "/nix/store/vnyjxn6h3rbrn49m25yyw7i1chlxglhw-python-2.7.1/lib/python2.7/zipfile.py", line 348, in FileHeader
|
||||||
# len(filename), len(extra))
|
# len(filename), len(extra))
|
||||||
#struct.error: ushort format requires 0 <= number <= USHRT_MAX
|
#struct.error: ushort format requires 0 <= number <= USHRT_MAX
|
||||||
|
patchPhase = ''
|
||||||
preConfigure = ''
|
|
||||||
find | xargs touch
|
find | xargs touch
|
||||||
|
|
||||||
|
substituteInPlace setup.py --replace "version=__version__" "version=baseVersion"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/bin
|
mkdir $out/bin
|
||||||
echo '#!/bin/sh' > $out/bin/jbrout
|
echo "python $out/${python.sitePackages}/jbrout/jbrout.py" > $out/bin/jbrout
|
||||||
echo "python $out/lib/python2.7/site-packages/jbrout-src-py2.7.egg/jbrout/jbrout.py" >> $out/bin/jbrout
|
|
||||||
chmod +x $out/bin/jbrout
|
chmod +x $out/bin/jbrout
|
||||||
|
|
||||||
wrapProgram $out/bin/jbrout \
|
|
||||||
--set PYTHONPATH "$out/lib/python:$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pyexiv2}):$(toPythonPath ${lxml}):$(toPythonPath ${pil}):$PYTHONPATH" \
|
|
||||||
--set PATH "${fbida}/bin:${which}/bin:$PATH"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ python pyGtkGlade makeWrapper pyexiv2 lxml pil fbida which ];
|
buildInputs = [ python makeWrapper which ];
|
||||||
|
propagatedBuildInputs = with pythonPackages; [ pillow lxml pyGtkGlade pyexiv2 fbida ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://code.google.com/p/jbrout";
|
homepage = "http://code.google.com/p/jbrout";
|
||||||
description = "Photo manager";
|
description = "Photo manager";
|
||||||
|
|
|
@ -16,10 +16,10 @@ python27Packages.buildPythonPackage rec {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
setupPyBuildFlags = ["-i"];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
|
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
|
||||||
sed -i "s|distutils.core|setuptools|" setup.py
|
|
||||||
sed -i "s|distutils.command.install |setuptools.command.install |" setup.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
|
@ -27,12 +27,12 @@ pythonPackages.buildPythonPackage rec {
|
||||||
# string, which allows setting an explicit MIME type.
|
# string, which allows setting an explicit MIME type.
|
||||||
patches = [ ./pytrainer-webkit.patch ];
|
patches = [ ./pytrainer-webkit.patch ];
|
||||||
|
|
||||||
pythonPath = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
dateutil lxml matplotlibGtk pyGtkGlade pywebkitgtk
|
dateutil lxml matplotlibGtk pyGtkGlade pywebkitgtk
|
||||||
sqlalchemy sqlalchemy_migrate
|
sqlalchemy_migrate
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [gpsbabel sqlite] ++ pythonPath;
|
buildInputs = [ gpsbabel sqlite ];
|
||||||
|
|
||||||
# This package contains no binaries to patch or strip.
|
# This package contains no binaries to patch or strip.
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
|
@ -12,7 +12,7 @@ pythonPackages.buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
requests
|
requests2
|
||||||
six
|
six
|
||||||
praw
|
praw
|
||||||
kitchen
|
kitchen
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, lib, makeWrapper, fetchurl, curl, sasl, openssh, autoconf
|
{ stdenv, lib, makeWrapper, fetchurl, curl, sasl, openssh, autoconf
|
||||||
, automake114x, libtool, unzip, gnutar, jdk, maven, python, wrapPython
|
, automake114x, libtool, unzip, gnutar, jdk, maven, python, wrapPython
|
||||||
, setuptools, distutils-cfg, boto, pythonProtobuf, apr, subversion
|
, setuptools, boto, pythonProtobuf, apr, subversion
|
||||||
, leveldb, glog, perf, utillinux, libnl, iproute
|
, leveldb, glog, perf, utillinux, libnl, iproute
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -9,14 +9,14 @@ let
|
||||||
soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so";
|
soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so";
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
version = "0.23.0";
|
version = "0.23.1";
|
||||||
name = "mesos-${version}";
|
name = "mesos-${version}";
|
||||||
|
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.apache.org/dist/mesos/${version}/mesos-${version}.tar.gz";
|
url = "http://www.apache.org/dist/mesos/${version}/mesos-${version}.tar.gz";
|
||||||
sha256 = "1v5xpn4wal4vcrvcklchx9slkpa8xlwqkdbnxzy9zkzpq5g3arxr";
|
sha256 = "0ygvb0xm4m1ilwbfyjbq0dpsviicg2ab98zg96k2ypa2pa69mvpa";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
makeWrapper autoconf automake114x libtool curl sasl jdk maven
|
makeWrapper autoconf automake114x libtool curl sasl jdk maven
|
||||||
python wrapPython boto distutils-cfg setuptools leveldb
|
python wrapPython boto setuptools leveldb
|
||||||
subversion apr glog
|
subversion apr glog
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
libnl
|
libnl
|
||||||
|
|
|
@ -12,12 +12,6 @@ buildPythonPackage rec {
|
||||||
sha256 = "0li4kvxjmbz3nqg6bysgn2wdazqrd7gm9fym3rd7148aiqqwa91r";
|
sha256 = "0li4kvxjmbz3nqg6bysgn2wdazqrd7gm9fym3rd7148aiqqwa91r";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Sometimes the generated output isn't identical. It seems like there's a
|
|
||||||
# race condtion while patching the Mailnag/commons/dist_cfg.py file. This is
|
|
||||||
# a small workaround to produce deterministic builds.
|
|
||||||
# For more information see https://github.com/NixOS/nixpkgs/pull/8279
|
|
||||||
setupPyBuildFlags = [ "--build-base=$PWD" ];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus
|
gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus
|
||||||
pythonPackages.pyxdg gdk_pixbuf libnotify gst_all_1.gstreamer
|
pythonPackages.pyxdg gdk_pixbuf libnotify gst_all_1.gstreamer
|
||||||
|
|
|
@ -17,83 +17,19 @@ buildPythonPackage rec {
|
||||||
sha256 = "077vf4h0hjmbk8bxj9l0z9rxcb3dw642n32lvfn6vjdna1qm910m";
|
sha256 = "077vf4h0hjmbk8bxj9l0z9rxcb3dw642n32lvfn6vjdna1qm910m";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pythonPackages.sqlite3 pygtk /*pythonPackages.pyxdg*/ pygobject ];
|
propagatedBuildInputs = [ pythonPackages.sqlite3 pygtk pythonPackages.pyxdg pygobject ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
mkdir -p /tmp/home
|
mkdir -p /tmp/home
|
||||||
export HOME="/tmp/home"
|
export HOME="/tmp/home"
|
||||||
|
|
||||||
|
sed -i '/zim_install_class,/d' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupPyBuildFlags = ["--skip-xdg-cmd"];
|
|
||||||
|
|
||||||
#
|
preFixup = ''
|
||||||
# Exactly identical to buildPythonPackage's version but for the
|
export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped"
|
||||||
# `--old-and-unmanagable`, which I removed. This was removed because
|
|
||||||
# this is a setuptools specific flag and as zim is overriding
|
|
||||||
# the install step, setuptools could not perform its monkey
|
|
||||||
# patching trick for the command. Alternate solutions were to
|
|
||||||
#
|
|
||||||
# - Remove the custom install step (tested as working but
|
|
||||||
# also remove the possibility of performing the xdg-cmd
|
|
||||||
# stuff).
|
|
||||||
# - Explicitly replace distutils import(s) by their setuptools
|
|
||||||
# equivalent (untested).
|
|
||||||
#
|
|
||||||
# Both solutions were judged unsatisfactory as altering the code
|
|
||||||
# would be required.
|
|
||||||
#
|
|
||||||
# Note that a improved solution would be to expose the use of
|
|
||||||
# the `--old-and-unmanagable` flag as an option of passed to the
|
|
||||||
# buildPythonPackage function.
|
|
||||||
#
|
|
||||||
# Also note that I stripped all comments.
|
|
||||||
#
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
|
||||||
|
|
||||||
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
|
||||||
|
|
||||||
${python}/bin/${python.executable} setup.py install \
|
|
||||||
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
|
||||||
--prefix="$out" ${lib.concatStringsSep " " setupPyBuildFlags}
|
|
||||||
|
|
||||||
eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
|
|
||||||
if [ -e "$eapth" ]; then
|
|
||||||
# move colliding easy_install.pth to specifically named one
|
|
||||||
mv "$eapth" $(dirname "$eapth")/${name}.pth
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# FIXME: this is quick and dirty hack, because zim expects the
|
|
||||||
# path to the executable in argv[0] therefore the wrapper is
|
|
||||||
# modified accordingly.
|
|
||||||
postFixup = ''
|
|
||||||
wrapProgram "$out/bin/zim" \
|
|
||||||
--prefix XDG_DATA_DIRS : "$out/share"
|
|
||||||
|
|
||||||
wrapPythonPrograms
|
|
||||||
|
|
||||||
sed -i "s#sys\.argv\[0\] = '.zim-wrapped'#sys.argv[0] = '$out/bin/zim'#g" \
|
|
||||||
$out/bin/..zim-wrapped-wrapped
|
|
||||||
|
|
||||||
if test -e $out/nix-support/propagated-build-inputs; then
|
|
||||||
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
|
|
||||||
fi
|
|
||||||
|
|
||||||
createBuildInputsPth build-inputs "$buildInputStrings"
|
|
||||||
for inputsfile in propagated-build-inputs propagated-native-build-inputs; do
|
|
||||||
if test -e $out/nix-support/$inputsfile; then
|
|
||||||
createBuildInputsPth $inputsfile "$(cat $out/nix-support/$inputsfile)"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Testing fails.
|
# Testing fails.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,10 @@ in buildPythonPackage rec {
|
||||||
|
|
||||||
buildInputs = [ ffmpeg ];
|
buildInputs = [ ffmpeg ];
|
||||||
|
|
||||||
pythonPath = [ pygtk dbus ffmpeg mplayer dvdauthor vcdimager cdrkit ];
|
propagatedBuildInputs = [ pygtk dbus ffmpeg mplayer dvdauthor vcdimager cdrkit ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede"
|
substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -26,5 +25,6 @@ in buildPythonPackage rec {
|
||||||
homepage = http://www.rastersoft.com/programas/devede.html;
|
homepage = http://www.rastersoft.com/programas/devede.html;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = [ maintainers.bdimcheff ];
|
maintainers = [ maintainers.bdimcheff ];
|
||||||
|
broken = true; # tarball is gone
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,16 +42,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py
|
sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py
|
||||||
|
rm setup.cfg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
postConfigure = ''
|
||||||
sed -i 's/from distutils.core/from setuptools/g' setup.py
|
${python.interpreter} setup.py configure --prefix=$out
|
||||||
sed -i 's/from distutils.command.install/from setuptools.command.install/g' setup.py
|
|
||||||
python setup.py configure --prefix=$out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "true";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
${glib}/bin/glib-compile-schemas "$out"/share/glib-2.0/schemas
|
${glib}/bin/glib-compile-schemas "$out"/share/glib-2.0/schemas
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -8,9 +8,11 @@ buildPythonPackage rec {
|
||||||
sha256 = "6a0b7b1fe2b046875456e14eda3e42430e493bf2251a64481cf4fd1a1e21a80e";
|
sha256 = "6a0b7b1fe2b046875456e14eda3e42430e493bf2251a64481cf4fd1a1e21a80e";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pythonPackages.nose pythonPackages.minimock ];
|
buildInputs = with pythonPackages; [ nose minimock ];
|
||||||
|
|
||||||
checkPhase = "make test";
|
checkPhase = ''
|
||||||
|
nosetests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A gpodder.net client library";
|
description = "A gpodder.net client library";
|
||||||
|
|
|
@ -31,19 +31,6 @@ index 416df5a..f07c9ec 100644
|
||||||
|
|
||||||
.. changelog::
|
.. changelog::
|
||||||
:version: 0.7.10
|
:version: 0.7.10
|
||||||
diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py
|
|
||||||
index 9a21a70..6523ccb 100644
|
|
||||||
--- a/lib/sqlalchemy/__init__.py
|
|
||||||
+++ b/lib/sqlalchemy/__init__.py
|
|
||||||
@@ -120,7 +120,7 @@
|
|
||||||
__all__ = sorted(name for name, obj in locals().items()
|
|
||||||
if not (name.startswith('_') or inspect.ismodule(obj)))
|
|
||||||
|
|
||||||
-__version__ = '0.7.10'
|
|
||||||
+__version__ = '0.7.11'
|
|
||||||
|
|
||||||
del inspect, sys
|
|
||||||
|
|
||||||
diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py
|
diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py
|
||||||
index 69b94f1..a37f684 100644
|
index 69b94f1..a37f684 100644
|
||||||
--- a/test/engine/test_execute.py
|
--- a/test/engine/test_execute.py
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, buildPythonPackage, fetchurl, twisted, dateutil, jinja2
|
{ stdenv, buildPythonPackage, fetchurl, twisted, dateutil, jinja2
|
||||||
, sqlalchemy , sqlalchemy_migrate
|
, sqlalchemy , sqlalchemy_migrate_0_7
|
||||||
, enableDebugClient ? false, pygobject ? null, pyGtkGlade ? null
|
, enableDebugClient ? false, pygobject ? null, pyGtkGlade ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -9,12 +9,12 @@
|
||||||
assert enableDebugClient -> pygobject != null && pyGtkGlade != null;
|
assert enableDebugClient -> pygobject != null && pyGtkGlade != null;
|
||||||
|
|
||||||
buildPythonPackage (rec {
|
buildPythonPackage (rec {
|
||||||
name = "buildbot-0.8.10";
|
name = "buildbot-0.8.12";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://pypi.python.org/packages/source/b/buildbot/${name}.tar.gz";
|
url = "https://pypi.python.org/packages/source/b/buildbot/${name}.tar.gz";
|
||||||
sha256 = "1x5513mjvd3mwwadawk6v3ca2wh5mcmgnn5h9jhq1jw1plp4v5n4";
|
sha256 = "1mn4h04sp6smr3ahqfflys15cpn13q9mfkapcs2jc4ppvxv6kdn6";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase =
|
patchPhase =
|
||||||
|
@ -25,12 +25,12 @@ buildPythonPackage (rec {
|
||||||
sed -i "$i" \
|
sed -i "$i" \
|
||||||
-e "s|/usr/bin/python|$(type -P python)|g ; s|/usr/bin/||g"
|
-e "s|/usr/bin/python|$(type -P python)|g ; s|/usr/bin/||g"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sed -i 's/==/>=/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ ];
|
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ twisted dateutil jinja2 sqlalchemy sqlalchemy_migrate
|
[ twisted dateutil jinja2 sqlalchemy_migrate_0_7
|
||||||
] ++ stdenv.lib.optional enableDebugClient [ pygobject pyGtkGlade ];
|
] ++ stdenv.lib.optional enableDebugClient [ pygobject pyGtkGlade ];
|
||||||
|
|
||||||
# What's up with this?! 'trial' should be 'test', no?
|
# What's up with this?! 'trial' should be 'test', no?
|
||||||
|
@ -51,12 +51,9 @@ buildPythonPackage (rec {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://buildbot.net/;
|
homepage = http://buildbot.net/;
|
||||||
|
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
|
|
||||||
# Of course, we don't really need that on NixOS. :-)
|
# Of course, we don't really need that on NixOS. :-)
|
||||||
description = "Continuous integration system that automates the build/test cycle";
|
description = "Continuous integration system that automates the build/test cycle";
|
||||||
|
|
||||||
longDescription =
|
longDescription =
|
||||||
'' The BuildBot is a system to automate the compile/test cycle
|
'' The BuildBot is a system to automate the compile/test cycle
|
||||||
required by most software projects to validate code changes. By
|
required by most software projects to validate code changes. By
|
||||||
|
@ -79,7 +76,6 @@ buildPythonPackage (rec {
|
||||||
encouraging them to be more careful about testing before checking
|
encouraging them to be more careful about testing before checking
|
||||||
in code.
|
in code.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
maintainers = with maintainers; [ bjornfor ];
|
maintainers = with maintainers; [ bjornfor ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
{ stdenv, fetchurl, pythonPackages, buildPythonPackage, git }:
|
|
||||||
|
|
||||||
let
|
|
||||||
upstreamName = "jenkins-job-builder";
|
|
||||||
version = "1.2.0";
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
name = "${upstreamName}-${version}";
|
|
||||||
namePrefix = ""; # Don't prepend "pythonX.Y-" to the name
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://pypi.python.org/packages/source/j/${upstreamName}/${name}.tar.gz";
|
|
||||||
sha256 = "09nxdhb0ilxpmk5gbvik6kj9b6j718j5an903dpcvi3r6vzk9b3p";
|
|
||||||
};
|
|
||||||
|
|
||||||
pythonPath = with pythonPackages; [ pip six pyyaml pbr python-jenkins ];
|
|
||||||
doCheck = false; # Requires outdated Sphinx
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "System for configuring Jenkins jobs using simple YAML files";
|
|
||||||
homepage = http://ci.openstack.org/jjb.html;
|
|
||||||
license = stdenv.lib.licenses.asl20;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,9 +8,8 @@ pythonPackages.buildPythonPackage rec {
|
||||||
sha256 = "0d574mbmhaqmh7kivaryj2hpghz6xkvic9ah43s1hf385y7c33kd";
|
sha256 = "0d574mbmhaqmh7kivaryj2hpghz6xkvic9ah43s1hf385y7c33kd";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
patchPhase = ''
|
||||||
rm -rf data/po/*
|
rm -rf data/po/*
|
||||||
python setup.py build
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
|
|
|
@ -16,6 +16,7 @@ python3Packages.buildPythonPackage rec {
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export ATTIC_OPENSSL_PREFIX="${openssl}"
|
export ATTIC_OPENSSL_PREFIX="${openssl}"
|
||||||
|
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
|
@ -12,19 +12,15 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with pythonPackages; [ gdata IMAPClient Logbook
|
||||||
pythonPackages.gdata
|
argparse ];
|
||||||
pythonPackages.IMAPClient
|
|
||||||
pythonPackages.Logbook
|
|
||||||
pythonPackages.argparse
|
|
||||||
];
|
|
||||||
|
|
||||||
startScript = ./gmvault.py;
|
startScript = ./gmvault.py;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
cat ${startScript} > etc/scripts/gmvault
|
cat ${startScript} > etc/scripts/gmvault
|
||||||
chmod +x etc/scripts/gmvault
|
chmod +x etc/scripts/gmvault
|
||||||
substituteInPlace setup.py --replace "Logbook==0.4.1" "Logbook==0.4.2"
|
substituteInPlace setup.py --replace "==" ">="
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
{ fetchurl, lib, unzip, buildPythonPackage, twisted, foolscap, nevow
|
||||||
, simplejson, zfec, pycryptopp, sqlite3, darcsver, setuptoolsTrial
|
, simplejson, zfec, pycryptopp, sqlite3, darcsver, setuptoolsTrial, python
|
||||||
, setuptoolsDarcs, numpy, nettools, pycrypto, pyasn1, mock }:
|
, setuptoolsDarcs, numpy, nettools, pycrypto, pyasn1, mock, zope_interface }:
|
||||||
|
|
||||||
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
# FAILURES: The "running build_ext" phase fails to compile Twisted
|
||||||
# plugins, because it tries to write them into Twisted's (immutable)
|
# plugins, because it tries to write them into Twisted's (immutable)
|
||||||
# store path. The problem appears to be non-fatal, but there's probably
|
# store path. The problem appears to be non-fatal, but there's probably
|
||||||
# some loss of functionality because of it.
|
# some loss of functionality because of it.
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
name = "tahoe-lafs-1.10.0";
|
name = "tahoe-lafs-1.10.0";
|
||||||
in
|
|
||||||
buildPythonPackage {
|
|
||||||
inherit name;
|
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -19,7 +16,7 @@ buildPythonPackage {
|
||||||
sha256 = "1qng7j1vykk8zl5da9yklkljvgxfnjky58gcay6dypz91xq1cmcw";
|
sha256 = "1qng7j1vykk8zl5da9yklkljvgxfnjky58gcay6dypz91xq1cmcw";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
patchPhase = ''
|
||||||
sed -i "src/allmydata/util/iputil.py" \
|
sed -i "src/allmydata/util/iputil.py" \
|
||||||
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
|
-es"|_linux_path = '/sbin/ifconfig'|_linux_path = '${nettools}/bin/ifconfig'|g"
|
||||||
|
|
||||||
|
@ -29,42 +26,40 @@ buildPythonPackage {
|
||||||
do
|
do
|
||||||
sed -i "$i" -e"s/localhost/127.0.0.1/g"
|
sed -i "$i" -e"s/localhost/127.0.0.1/g"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sed -i 's/"zope.interface.*"/"zope.interface"/' src/allmydata/_auto_deps.py
|
||||||
|
sed -i 's/"pycrypto.*"/"pycrypto"/' src/allmydata/_auto_deps.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ unzip ]
|
# Some tests want this + http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/mock-0.6.0.tar.bz2
|
||||||
++ [ numpy ]; # Some tests want this + http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/mock-0.6.0.tar.bz2
|
buildInputs = [ unzip numpy mock ];
|
||||||
|
|
||||||
# The `backup' command requires `sqlite3'.
|
# The `backup' command requires `sqlite3'.
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ twisted foolscap nevow simplejson zfec pycryptopp sqlite3
|
[ twisted foolscap nevow simplejson zfec pycryptopp sqlite3
|
||||||
darcsver setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 mock
|
darcsver setuptoolsTrial setuptoolsDarcs pycrypto pyasn1 zope_interface
|
||||||
];
|
];
|
||||||
|
|
||||||
# The test suite is run in `postInstall'.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install the documentation.
|
# Install the documentation.
|
||||||
mkdir -p "$out/share/doc/${name}"
|
mkdir -p "$out/share/doc/${name}"
|
||||||
cp -rv "docs/"* "$out/share/doc/${name}"
|
cp -rv "docs/"* "$out/share/doc/${name}"
|
||||||
find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \;
|
find "$out/share/doc/${name}" -name Makefile -exec rm -v {} \;
|
||||||
|
'';
|
||||||
|
|
||||||
# Run the tests once everything is installed.
|
checkPhase = ''
|
||||||
export PYTHON_EGG_CACHE="$TMPDIR"
|
# TODO: broken with wheels
|
||||||
python setup.py build
|
#${python.interpreter} setup.py trial
|
||||||
python setup.py trial
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Tahoe-LAFS, a decentralized, fault-tolerant, distributed storage system";
|
description = "Tahoe-LAFS, a decentralized, fault-tolerant, distributed storage system";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Tahoe-LAFS is a secure, decentralized, fault-tolerant filesystem.
|
Tahoe-LAFS is a secure, decentralized, fault-tolerant filesystem.
|
||||||
This filesystem is encrypted and spread over multiple peers in
|
This filesystem is encrypted and spread over multiple peers in
|
||||||
such a way that it remains available even when some of the peers
|
such a way that it remains available even when some of the peers
|
||||||
are unavailable, malfunctioning, or malicious.
|
are unavailable, malfunctioning, or malicious.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
homepage = http://allmydata.org/;
|
homepage = http://allmydata.org/;
|
||||||
license = [ lib.licenses.gpl2Plus /* or */ "TGPPLv1+" ];
|
license = [ lib.licenses.gpl2Plus /* or */ "TGPPLv1+" ];
|
||||||
maintainers = [ lib.maintainers.simons ];
|
maintainers = [ lib.maintainers.simons ];
|
||||||
|
|
|
@ -11,20 +11,19 @@ in pythonPackages.buildPythonPackage rec {
|
||||||
sha256 = "1mry5zdkfaq952kn1i06wiggc66cqgfp6qgnlpk0mr7nnwpd53wy";
|
sha256 = "1mry5zdkfaq952kn1i06wiggc66cqgfp6qgnlpk0mr7nnwpd53wy";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
patchPhase = ''
|
||||||
patchShebangs ./tools
|
patchShebangs ./tools
|
||||||
|
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace /usr $out \
|
--replace /usr $out \
|
||||||
--replace /etc $out/etc \
|
--replace /etc $out/etc \
|
||||||
--replace /lib/systemd $out/lib/systemd \
|
--replace /lib/systemd $out/lib/systemd \
|
||||||
|
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonPath = with pythonPackages; [ cheetah jinja2 prettytable
|
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
|
||||||
oauth pyserial configobj pyyaml argparse requests jsonpatch ];
|
oauth pyserial configobj pyyaml argparse requests jsonpatch ];
|
||||||
|
|
||||||
# TODO: --init-system systemd
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://cloudinit.readthedocs.org;
|
homepage = http://cloudinit.readthedocs.org;
|
||||||
description = "provides configuration and customization of cloud instance";
|
description = "provides configuration and customization of cloud instance";
|
||||||
|
|
|
@ -5050,7 +5050,7 @@ let
|
||||||
|
|
||||||
mesos = callPackage ../applications/networking/cluster/mesos {
|
mesos = callPackage ../applications/networking/cluster/mesos {
|
||||||
sasl = cyrus_sasl;
|
sasl = cyrus_sasl;
|
||||||
inherit (pythonPackages) python boto setuptools distutils-cfg wrapPython;
|
inherit (pythonPackages) python boto setuptools wrapPython;
|
||||||
pythonProtobuf = pythonPackages.protobuf2_5;
|
pythonProtobuf = pythonPackages.protobuf2_5;
|
||||||
perf = linuxPackages.perf;
|
perf = linuxPackages.perf;
|
||||||
};
|
};
|
||||||
|
@ -5419,7 +5419,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
buildbot = callPackage ../development/tools/build-managers/buildbot {
|
buildbot = callPackage ../development/tools/build-managers/buildbot {
|
||||||
inherit (pythonPackages) twisted jinja2 sqlalchemy sqlalchemy_migrate;
|
inherit (pythonPackages) twisted jinja2 sqlalchemy sqlalchemy_migrate_0_7;
|
||||||
dateutil = pythonPackages.dateutil_1_5;
|
dateutil = pythonPackages.dateutil_1_5;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5698,7 +5698,7 @@ let
|
||||||
|
|
||||||
jenkins = callPackage ../development/tools/continuous-integration/jenkins { };
|
jenkins = callPackage ../development/tools/continuous-integration/jenkins { };
|
||||||
|
|
||||||
jenkins-job-builder = callPackage ../development/tools/continuous-integration/jenkins-job-builder { };
|
jenkins-job-builder = pythonPackages.jenkins-job-builder;
|
||||||
|
|
||||||
kcov = callPackage ../development/tools/analysis/kcov { };
|
kcov = callPackage ../development/tools/analysis/kcov { };
|
||||||
|
|
||||||
|
@ -12098,9 +12098,7 @@ let
|
||||||
|
|
||||||
joe = callPackage ../applications/editors/joe { };
|
joe = callPackage ../applications/editors/joe { };
|
||||||
|
|
||||||
jbrout = callPackage ../applications/graphics/jbrout {
|
jbrout = callPackage ../applications/graphics/jbrout { };
|
||||||
inherit (pythonPackages) lxml;
|
|
||||||
};
|
|
||||||
|
|
||||||
jumanji = callPackage ../applications/networking/browsers/jumanji {
|
jumanji = callPackage ../applications/networking/browsers/jumanji {
|
||||||
webkitgtk = webkitgtk24x;
|
webkitgtk = webkitgtk24x;
|
||||||
|
@ -13111,7 +13109,7 @@ let
|
||||||
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {
|
||||||
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
inherit (pythonPackages) twisted foolscap simplejson nevow zfec
|
||||||
pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs
|
pycryptopp sqlite3 darcsver setuptoolsTrial setuptoolsDarcs
|
||||||
numpy pyasn1 mock;
|
numpy pyasn1 mock zope_interface;
|
||||||
};
|
};
|
||||||
|
|
||||||
tailor = builderDefsPackage (callPackage ../applications/version-management/tailor) {};
|
tailor = builderDefsPackage (callPackage ../applications/version-management/tailor) {};
|
||||||
|
|
|
@ -42,13 +42,10 @@ let
|
||||||
|
|
||||||
# helpers
|
# helpers
|
||||||
|
|
||||||
# global distutils config used by buildPythonPackage
|
|
||||||
distutils-cfg = callPackage ../development/python-modules/distutils-cfg { };
|
|
||||||
|
|
||||||
wrapPython = pkgs.makeSetupHook
|
wrapPython = pkgs.makeSetupHook
|
||||||
{ deps = pkgs.makeWrapper;
|
{ deps = pkgs.makeWrapper;
|
||||||
substitutions.libPrefix = python.libPrefix;
|
substitutions.libPrefix = python.libPrefix;
|
||||||
substitutions.executable = "${python}/bin/${python.executable}";
|
substitutions.executable = python.interpreter;
|
||||||
substitutions.magicalSedExpression = let
|
substitutions.magicalSedExpression = let
|
||||||
# Looks weird? Of course, it's between single quoted shell strings.
|
# Looks weird? Of course, it's between single quoted shell strings.
|
||||||
# NOTE: Order DOES matter here, so single character quotes need to be
|
# NOTE: Order DOES matter here, so single character quotes need to be
|
||||||
|
@ -2539,7 +2536,7 @@ let
|
||||||
|
|
||||||
# TypeError: __call__() takes 1 positional argument but 2 were given
|
# TypeError: __call__() takes 1 positional argument but 2 were given
|
||||||
doCheck = !isPy3k;
|
doCheck = !isPy3k;
|
||||||
buildInputs = with self; [ nose mock ];
|
buildInputs = with self; [ mock ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Code coverage measurement for python";
|
description = "Code coverage measurement for python";
|
||||||
|
@ -9892,6 +9889,7 @@ let
|
||||||
plover = pythonPackages.buildPythonPackage rec {
|
plover = pythonPackages.buildPythonPackage rec {
|
||||||
name = "plover-${version}";
|
name = "plover-${version}";
|
||||||
version = "2.5.8";
|
version = "2.5.8";
|
||||||
|
disabled = !isPy27;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "OpenSteno Plover stenography software";
|
description = "OpenSteno Plover stenography software";
|
||||||
|
@ -10358,6 +10356,8 @@ let
|
||||||
sha256 = "00qymfgwg4iam4xi0w9bnv7lcb3fypq1hzfafzgs1rfmwaj67g3n";
|
sha256 = "00qymfgwg4iam4xi0w9bnv7lcb3fypq1hzfafzgs1rfmwaj67g3n";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ self.coverage ];
|
||||||
|
|
||||||
doCheck = false; # lot's of transient errors, too much hassle
|
doCheck = false; # lot's of transient errors, too much hassle
|
||||||
checkPhase = if python.is_py3k or false then ''
|
checkPhase = if python.is_py3k or false then ''
|
||||||
${python}/bin/${python.executable} setup.py build_tests
|
${python}/bin/${python.executable} setup.py build_tests
|
||||||
|
@ -17336,7 +17336,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
sqlalchemy_migrate = buildPythonPackage rec {
|
sqlalchemy_migrate_func = sqlalchemy: buildPythonPackage rec {
|
||||||
name = "sqlalchemy-migrate-0.10.0";
|
name = "sqlalchemy-migrate-0.10.0";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
|
@ -17345,7 +17345,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with self; [ unittest2 scripttest pytz pkgs.pylint tempest-lib mock testtools ];
|
buildInputs = with self; [ unittest2 scripttest pytz pkgs.pylint tempest-lib mock testtools ];
|
||||||
propagatedBuildInputs = with self; [ pbr tempita decorator sqlalchemy_1_0 six sqlparse ];
|
propagatedBuildInputs = with self; [ pbr tempita decorator sqlalchemy six sqlparse ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export PATH=$PATH:$out/bin
|
export PATH=$PATH:$out/bin
|
||||||
|
@ -17365,6 +17365,8 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy_1_0;
|
||||||
|
sqlalchemy_migrate_0_7 = self.sqlalchemy_migrate_func self.sqlalchemy;
|
||||||
|
|
||||||
sqlparse = buildPythonPackage rec {
|
sqlparse = buildPythonPackage rec {
|
||||||
name = "sqlparse-${version}";
|
name = "sqlparse-${version}";
|
||||||
|
@ -18301,16 +18303,12 @@ let
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://twistedmatrix.com/;
|
homepage = http://twistedmatrix.com/;
|
||||||
|
|
||||||
description = "Twisted, an event-driven networking engine written in Python";
|
description = "Twisted, an event-driven networking engine written in Python";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Twisted is an event-driven networking engine written in Python
|
Twisted is an event-driven networking engine written in Python
|
||||||
and licensed under the MIT license.
|
and licensed under the MIT license.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue