Merge staging-next into master
This commit is contained in:
@@ -25,9 +25,9 @@ buildPythonPackage rec {
|
||||
|
||||
# Create symlinks lacking a ".py" suffix, many programs depend on these names
|
||||
postFixup = ''
|
||||
(cd $out/bin && for f in *.py; do
|
||||
ln -s $f $(echo $f | sed -e 's/\.py$//')
|
||||
done)
|
||||
for f in $out/bin/*.py; do
|
||||
ln -s $(basename $f) $out/bin/$(basename $f .py)
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
, pyatspi
|
||||
, pycairo
|
||||
, at-spi2-core
|
||||
, gobjectIntrospection
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, gsettings-desktop-schemas
|
||||
, fetchurl
|
||||
@@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||
./nix-support.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ gobjectIntrospection dbus xvfb_run ]; # for setup hooks
|
||||
nativeBuildInputs = [ gobject-introspection dbus xvfb_run ]; # for setup hooks
|
||||
propagatedBuildInputs = [ at-spi2-core gtk3 pygobject3 pyatspi pycairo ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
33
pkgs/development/python-modules/flask-socketio/default.nix
Normal file
33
pkgs/development/python-modules/flask-socketio/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, python-socketio
|
||||
, coverage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-SocketIO";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a7188b35f7874903f554b3a1a3a4465213e765c4f17182fa5cb3d9f6915da4c1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
python-socketio
|
||||
];
|
||||
|
||||
checkInputs = [ coverage ];
|
||||
# tests only on github, but lates release there is not tagged
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Socket.IO integration for Flask applications";
|
||||
homepage = http://github.com/miguelgrinberg/Flask-SocketIO/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
, buildPythonPackage
|
||||
, pkgconfig
|
||||
, gtk3
|
||||
, gobjectIntrospection
|
||||
, gobject-introspection
|
||||
, pygtk
|
||||
, pygobject3
|
||||
, goocanvas2
|
||||
@@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||
inherit pname version;
|
||||
sha256 = "ca3950c2728916d9fb703c886f3940ac9b76739f99ec840b0e1c2c282510e1ab";
|
||||
};
|
||||
nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
|
||||
nativeBuildInputs = [ pkgconfig gobject-introspection ];
|
||||
propagatedBuildInputs = [
|
||||
pygtk
|
||||
pygobject3
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook,
|
||||
pkgconfig, boost, expat, scipy, cgal, gmp, mpfr,
|
||||
gobjectIntrospection, pygobject3, gtk3, matplotlib, ncurses,
|
||||
gobject-introspection, pygobject3, gtk3, matplotlib, ncurses,
|
||||
buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -43,7 +43,7 @@ buildPythonPackage rec {
|
||||
sparsehash
|
||||
# drawing
|
||||
cairomm
|
||||
gobjectIntrospection
|
||||
gobject-introspection
|
||||
gtk3
|
||||
pycairo
|
||||
matplotlib
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ buildPythonPackage, fetchurl, meson, ninja, stdenv, pkgconfig, python, pygobject3
|
||||
, gobjectIntrospection, gst-plugins-base, isPy3k
|
||||
, gobject-introspection, gst-plugins-base, isPy3k
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -46,7 +46,7 @@ in buildPythonPackage rec {
|
||||
substituteInPlace meson.build --replace python3 python${if isPy3k then "3" else "2"}
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkgconfig python gobjectIntrospection ];
|
||||
nativeBuildInputs = [ meson ninja pkgconfig python gobject-introspection ];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dpython=python${if isPy3k then "3" else "2"}"
|
||||
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
# TODO: AppIndicator
|
||||
propagatedBuildInputs = [ pkgs.gobjectIntrospection pygobject3 pkgs.makeWrapper pkgs.gtk3 ];
|
||||
propagatedBuildInputs = [ pkgs.gobject-introspection pygobject3 pkgs.makeWrapper pkgs.gtk3 ];
|
||||
|
||||
checkPhase = ''
|
||||
substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, which, cycler, dateutil, nose, numpy, pyparsing, sphinx, tornado, kiwisolver
|
||||
, freetype, libpng, pkgconfig, mock, pytz, pygobject3, functools32, subprocess32
|
||||
, enableGhostscript ? false, ghostscript ? null, gtk3
|
||||
, enableGtk2 ? false, pygtk ? null, gobjectIntrospection
|
||||
, enableGtk2 ? false, pygtk ? null, gobject-introspection
|
||||
, enableGtk3 ? false, cairo
|
||||
, enableTk ? false, tcl ? null, tk ? null, tkinter ? null, libX11 ? null
|
||||
, enableQt ? false, pyqt4
|
||||
@@ -42,7 +42,7 @@ buildPythonPackage rec {
|
||||
libpng pkgconfig mock pytz ]
|
||||
++ stdenv.lib.optional (pythonOlder "3.3") backports_functools_lru_cache
|
||||
++ stdenv.lib.optional enableGtk2 pygtk
|
||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobjectIntrospection pygobject3 ]
|
||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
||||
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
||||
++ stdenv.lib.optionals enableQt [ pyqt4 ]
|
||||
++ stdenv.lib.optionals (builtins.hasAttr "isPy2" python) [ functools32 subprocess32 ];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, which, cycler, dateutil, nose, numpy, pyparsing, sphinx, tornado, kiwisolver
|
||||
, freetype, libpng, pkgconfig, mock, pytz, pygobject3, functools32, subprocess32
|
||||
, enableGhostscript ? true, ghostscript ? null, gtk3
|
||||
, enableGtk2 ? false, pygtk ? null, gobjectIntrospection
|
||||
, enableGtk2 ? false, pygtk ? null, gobject-introspection
|
||||
, enableGtk3 ? false, cairo
|
||||
, enableTk ? false, tcl ? null, tk ? null, tkinter ? null, libX11 ? null
|
||||
, enableQt ? false, pyqt4
|
||||
@@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||
libpng pkgconfig mock pytz ]
|
||||
++ stdenv.lib.optional (pythonOlder "3.3") backports_functools_lru_cache
|
||||
++ stdenv.lib.optional enableGtk2 pygtk
|
||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobjectIntrospection pygobject3 ]
|
||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
||||
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
||||
++ stdenv.lib.optionals enableQt [ pyqt4 ];
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1vpvr3zm3f9sxg1z1cl7f7gi8v1xksjdvxj62qnw65aqj3zqxnkz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ neovim click pygobject3 pkgs.gobjectIntrospection pkgs.makeWrapper pkgs.gtk3 ];
|
||||
propagatedBuildInputs = [ neovim click pygobject3 pkgs.gobject-introspection pkgs.makeWrapper pkgs.gtk3 ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "s|entry_points=entry_points,|entry_points=dict(console_scripts=['pynvim=neovim.ui.cli:main [GUI]']),|" setup.py
|
||||
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./setup.patch;
|
||||
version_ = "3${stdenv.lib.versions.minor python.version}";
|
||||
version = "3${stdenv.lib.versions.minor python.version}";
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@@ -39,7 +39,7 @@
|
||||
if '3' in l[2:]:
|
||||
return l.replace('libboost', 'boost')
|
||||
|
||||
|
||||
-libboost = get_libboost_name()
|
||||
+libboost = 'boost_python@version_@'
|
||||
|
||||
+libboost = 'boost_python@version@'
|
||||
|
||||
setup(
|
||||
name='py3exiv2',
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyatspi";
|
||||
version = "2.26.0";
|
||||
version = "2.30.0";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0xdnix7gxzgf75xy9ris4dd6b05mqwicw190b98xqmypydyf95n6";
|
||||
sha256 = "11g7dx21brfmi5vrq289cw983rydalx0cy91afv5gigyadsmyam2";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
||||
34
pkgs/development/python-modules/pygdbmi/default.nix
Normal file
34
pkgs/development/python-modules/pygdbmi/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, gdb
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygdbmi";
|
||||
version = "0.9.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
#inherit pname version;
|
||||
#inherit pname version;
|
||||
owner = "cs01";
|
||||
repo = "pygdbmi";
|
||||
rev = version;
|
||||
sha256 = "12xq9iajgqz23dska5x63hrx75icr5bwwswnmba0y69y39s0jpsj";
|
||||
};
|
||||
|
||||
checkInputs = [ gdb ];
|
||||
|
||||
postPatch = ''
|
||||
# tries to execute flake8,
|
||||
# which is likely to break on flake8 updates
|
||||
echo "def main(): return 0" > tests/static_tests.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Parse gdb machine interface output with Python";
|
||||
homepage = https://github.com/cs01/pygdbmi;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
@@ -1,28 +1,40 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
|
||||
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobject-introspection,
|
||||
pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
major = "3.26";
|
||||
minor = "1";
|
||||
version = "${major}.${minor}";
|
||||
format = "other";
|
||||
pname = "pygobject";
|
||||
name = pname + "-" + version;
|
||||
version = "3.30.2";
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
|
||||
sha256 = "1afi0jdjd9sanrzjwhv7z1k7qxlb91fqa6yqc2dbpjkhkjdpnmzm";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "15zd4w43js048y7fd1kdi6wpvccz1njjy60xw1ckvfy1qhikbz54";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ glib gobjectIntrospection ]
|
||||
mesonFlags = [
|
||||
"-Dpython=python${if isPy3k then "3" else "2" }"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig meson ninja ];
|
||||
buildInputs = [ glib gobject-introspection ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
|
||||
propagatedBuildInputs = [ pycairo cairo ];
|
||||
|
||||
meta = {
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "python3.pkgs.${pname}3";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pygobject.readthedocs.io/;
|
||||
description = "Python bindings for Glib";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, cryptography, ecdsa
|
||||
, pytestrunner, pytestcov, pytest_37 }:
|
||||
, pytestrunner, pytestcov, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyJWT";
|
||||
@@ -13,7 +13,14 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ cryptography ecdsa ];
|
||||
|
||||
checkInputs = [ pytestrunner pytestcov pytest_37 ];
|
||||
checkInputs = [ pytestrunner pytestcov pytest ];
|
||||
|
||||
# pytest 3.9.0 changed behavior of deprecated_call, see release notes
|
||||
postPatch = ''
|
||||
for x in tests/test_api_*py; do
|
||||
substituteInPlace "$x" --replace AssertionError pytest.fail.Exception
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "JSON Web Token implementation in Python";
|
||||
|
||||
49
pkgs/development/python-modules/python-engineio/default.nix
Normal file
49
pkgs/development/python-modules/python-engineio/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, six
|
||||
, eventlet
|
||||
, mock
|
||||
, iana-etc
|
||||
, libredirect
|
||||
, aiohttp
|
||||
, tornado
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-engineio";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miguelgrinberg";
|
||||
repo = "python-engineio";
|
||||
rev = "v${version}";
|
||||
sha256 = "1v510fhn0li808ar2cmwh5nijacy5x60q9x4gm0b34j6mkmc59ph";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
eventlet
|
||||
mock
|
||||
aiohttp
|
||||
tornado
|
||||
];
|
||||
|
||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
||||
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||
'';
|
||||
postCheck = "unset NIX_REDIRECTS LD_PRELOAD";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Engine.IO server";
|
||||
homepage = http://github.com/miguelgrinberg/python-engineio/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
33
pkgs/development/python-modules/python-socketio/default.nix
Normal file
33
pkgs/development/python-modules/python-socketio/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, python-engineio
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-socketio";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "10457ahvi16iyshmynr0j9palfsbnpzya8p1nmlhzrcr11fsnkb7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
python-engineio
|
||||
];
|
||||
|
||||
checkInputs = [ mock ];
|
||||
# tests only on github, but latest github release not tagged
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Socket.IO server";
|
||||
homepage = http://github.com/miguelgrinberg/python-socketio/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
||||
@@ -18,10 +18,6 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ nix boost ];
|
||||
|
||||
checkPhase = ''
|
||||
ninja test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = ''
|
||||
Eval nix code from python.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
{ stdenv, buildPackages, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
@@ -10,7 +10,8 @@ buildPythonPackage rec {
|
||||
sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
|
||||
};
|
||||
|
||||
disabled = isPy3k;
|
||||
# needs python2 at build time
|
||||
PYTHON="${buildPackages.python2.interpreter}";
|
||||
|
||||
setupPyBuildFlags = [ "--plat-name" "linux" ];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, wrapGAppsHook, gobjectIntrospection, pygobject3, graphviz, gnome3 }:
|
||||
, wrapGAppsHook, gobject-introspection, pygobject3, graphviz, gnome3 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xdot";
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
disabled = !isPy3k;
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook ];
|
||||
propagatedBuildInputs = [ gobjectIntrospection pygobject3 graphviz gnome3.gtk ];
|
||||
propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gnome3.gtk ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "xdot.py is an interactive viewer for graphs written in Graphviz's dot";
|
||||
|
||||
Reference in New Issue
Block a user