Merge staging-next into staging
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "antlr4-python3-runtime";
|
||||
version = "4.7.1";
|
||||
version = "4.7.2";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1lrzmagawmavyw1n1z0qarvs2jmbnbv0p89dah8g7klj8hnbf9hv";
|
||||
sha256 = "02xm7ccsf51vh4xsnhlg6pvchm1x3ckgv9kwm222w5drizndr30n";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, docutils, six, sphinx, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.11.0";
|
||||
version = "4.11.1";
|
||||
pname = "breathe";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05x3qrvsriy0cn0p4bxnzhp27pvxbq2vxlxncr2wqh003gpbp4fa";
|
||||
sha256 = "1mps0cfli6iq2gqsv3d24fs1cp7sq7crd9ji6lw63b9r40998ylv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docutils six sphinx ];
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-extensions";
|
||||
version = "2.1.3";
|
||||
version = "2.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0ns1m9sdkcbbz84wvzgxa4f8hf4a8z656jzwx4bw8np9kh96zfjy";
|
||||
sha256 = "1bp0ybarkrj66qx2gn9954vsjqq2ya1w4bppfhr763mkis8qnb4f";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "graph-tool";
|
||||
format = "other";
|
||||
version = "2.26";
|
||||
version = "2.27";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python module for manipulation and statistical analysis of graphs";
|
||||
@@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
|
||||
sha256 = "0w7pd2h8ayr88kjl82c8fdshnk6f3xslc77gy7ma09zkbvf76qnz";
|
||||
sha256 = "04s31qwlfcl7bwsggnic8gqcqmx2wsrmfw77nf7vzgnz42bwch27";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "influxdb";
|
||||
version = "5.2.0";
|
||||
version = "5.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fqnshmsgifvp79pd4g9a1kyfxvpa9vczv0dv8x2jr2c5m1mi99v";
|
||||
sha256 = "1dp3fakzp0fqdajf6xsfmisdwj1avk4lvxjmw5k9wkhdbpi6vnbm";
|
||||
};
|
||||
|
||||
# ImportError: No module named tests
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libarcus";
|
||||
version = "3.4.1";
|
||||
version = "3.6.0";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ultimaker";
|
||||
repo = "libArcus";
|
||||
rev = version;
|
||||
sha256 = "0mln8myvfl7rq2p4g1vadvlykckd8490jijag4xa5hhj3w3p19bk";
|
||||
sha256 = "1zbp6axai47k3p2q497wiajls1h17wss143zynbwbwrqinsfiw43";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.4.0";
|
||||
@@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Communication library between internal components for Ultimaker software";
|
||||
homepage = https://github.com/Ultimaker/libArcus;
|
||||
license = licenses.agpl3;
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
|
||||
33
pkgs/development/python-modules/libsavitar/default.nix
Normal file
33
pkgs/development/python-modules/libsavitar/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, cmake, sip }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libsavitar";
|
||||
version = "3.6.0";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ultimaker";
|
||||
repo = "libSavitar";
|
||||
rev = version;
|
||||
sha256 = "1bz8ga0n9aw65hqzajbr93dcv5g555iaihbhs1jq2k47cx66klzv";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# To workaround buggy SIP detection which overrides PYTHONPATH
|
||||
sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
propagatedBuildInputs = [ sip ];
|
||||
|
||||
disabled = pythonOlder "3.4.0";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "C++ implementation of 3mf loading with SIP python bindings";
|
||||
homepage = https://github.com/Ultimaker/libSavitar;
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar orivej ];
|
||||
};
|
||||
}
|
||||
@@ -8,7 +8,9 @@ let
|
||||
pname = "PyQt";
|
||||
version = "5.11.3";
|
||||
|
||||
inherit (pythonPackages) buildPythonPackage python isPy3k dbus-python sip enum34;
|
||||
inherit (pythonPackages) buildPythonPackage python isPy3k dbus-python enum34;
|
||||
|
||||
sip = pythonPackages.sip.override { sip-module = "PyQt5.sip"; };
|
||||
|
||||
in buildPythonPackage {
|
||||
pname = pname;
|
||||
@@ -32,10 +34,10 @@ in buildPythonPackage {
|
||||
|
||||
nativeBuildInputs = [ pkgconfig qmake lndir ];
|
||||
|
||||
buildInputs = [ dbus ];
|
||||
buildInputs = [ dbus sip ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sip qtbase qtsvg qtwebkit qtwebengine
|
||||
qtbase qtsvg qtwebkit qtwebengine
|
||||
] ++ lib.optional (!isPy3k) enum34 ++ lib.optional withWebSockets qtwebsockets ++ lib.optional withConnectivity qtconnectivity;
|
||||
|
||||
configurePhase = ''
|
||||
@@ -65,7 +67,7 @@ in buildPythonPackage {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -s ${sip}/${python.sitePackages}/PyQt5/* $out/${python.sitePackages}/PyQt5
|
||||
ln -s ${sip}/${python.sitePackages}/PyQt5/sip.* $out/${python.sitePackages}/PyQt5/
|
||||
for i in $out/bin/*; do
|
||||
wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH"
|
||||
done
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, execnet, pytest, setuptools_scm, pytest-forked, filelock }:
|
||||
{ stdenv, fetchPypi, buildPythonPackage, execnet, pytest, setuptools_scm, pytest-forked, filelock, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-xdist";
|
||||
@@ -9,9 +9,9 @@ buildPythonPackage rec {
|
||||
sha256 = "909bb938bdb21e68a28a8d58c16a112b30da088407b678633efb01067e3923de";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
checkInputs = [ pytest pytest-forked filelock ];
|
||||
propagatedBuildInputs = [ execnet ];
|
||||
nativeBuildInputs = [ setuptools_scm pytest ];
|
||||
checkInputs = [ pytest filelock ];
|
||||
propagatedBuildInputs = [ execnet pytest-forked six ];
|
||||
|
||||
checkPhase = ''
|
||||
# Excluded tests access file system
|
||||
|
||||
21
pkgs/development/python-modules/pywal/convert.patch
Normal file
21
pkgs/development/python-modules/pywal/convert.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff --git a/pywal/backends/wal.py b/pywal/backends/wal.py
|
||||
index a75fdc5..4339680 100644
|
||||
--- a/pywal/backends/wal.py
|
||||
+++ b/pywal/backends/wal.py
|
||||
@@ -21,15 +21,7 @@ def imagemagick(color_count, img, magick_command):
|
||||
|
||||
def has_im():
|
||||
"""Check to see if the user has im installed."""
|
||||
- if shutil.which("magick"):
|
||||
- return ["magick", "convert"]
|
||||
-
|
||||
- if shutil.which("convert"):
|
||||
- return ["convert"]
|
||||
-
|
||||
- logging.error("Imagemagick wasn't found on your system.")
|
||||
- logging.error("Try another backend. (wal --backend)")
|
||||
- sys.exit(1)
|
||||
+ return ["@convert@"]
|
||||
|
||||
|
||||
def gen_colors(img):
|
||||
33
pkgs/development/python-modules/pywal/default.nix
Normal file
33
pkgs/development/python-modules/pywal/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, python3Packages, imagemagick, feh }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "pywal";
|
||||
version = "3.2.1";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1pj30h19ijwhmbm941yzbkgr19q06dhp9492h9nrqw1wfjfdbdic";
|
||||
};
|
||||
|
||||
preCheck = ''
|
||||
mkdir tmp
|
||||
HOME=$PWD/tmp
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./convert.patch
|
||||
./feh.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
|
||||
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3.";
|
||||
homepage = https://github.com/dylanaraps/pywal;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Fresheyeball ];
|
||||
};
|
||||
}
|
||||
39
pkgs/development/python-modules/pywal/feh.patch
Normal file
39
pkgs/development/python-modules/pywal/feh.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
commit c31faa212e09aa62c232d9008e05976b1cdc9ee5
|
||||
Author: Frederik Rietdijk <fridh@fridh.nl>
|
||||
Date: Wed Dec 26 12:54:32 2018 +0100
|
||||
|
||||
nix: hardcode feh
|
||||
|
||||
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
|
||||
index ba61e66..fad34f7 100644
|
||||
--- a/pywal/wallpaper.py
|
||||
+++ b/pywal/wallpaper.py
|
||||
@@ -47,27 +47,7 @@ def xfconf(path, img):
|
||||
|
||||
def set_wm_wallpaper(img):
|
||||
"""Set the wallpaper for non desktop environments."""
|
||||
- if shutil.which("feh"):
|
||||
- util.disown(["feh", "--bg-fill", img])
|
||||
-
|
||||
- elif shutil.which("nitrogen"):
|
||||
- util.disown(["nitrogen", "--set-zoom-fill", img])
|
||||
-
|
||||
- elif shutil.which("bgs"):
|
||||
- util.disown(["bgs", "-z", img])
|
||||
-
|
||||
- elif shutil.which("hsetroot"):
|
||||
- util.disown(["hsetroot", "-fill", img])
|
||||
-
|
||||
- elif shutil.which("habak"):
|
||||
- util.disown(["habak", "-mS", img])
|
||||
-
|
||||
- elif shutil.which("display"):
|
||||
- util.disown(["display", "-backdrop", "-window", "root", img])
|
||||
-
|
||||
- else:
|
||||
- logging.error("No wallpaper setter found.")
|
||||
- return
|
||||
+ return util.disown(["@feh@", "--bg-fill", img])
|
||||
|
||||
|
||||
def set_desktop_wallpaper(desktop, img):
|
||||
@@ -1,24 +1,26 @@
|
||||
{ lib, fetchurl, buildPythonPackage, python, isPyPy }:
|
||||
{ lib, fetchurl, buildPythonPackage, python, isPyPy, sip-module ? "sip" }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sip";
|
||||
pname = sip-module;
|
||||
version = "4.19.13";
|
||||
format = "other";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/pyqt/sip/${pname}-${version}/${pname}-${version}.tar.gz";
|
||||
url = "mirror://sourceforge/pyqt/sip/sip-${version}/sip-${version}.tar.gz";
|
||||
sha256 = "0pniq03jk1n5bs90yjihw3s3rsmjd8m89y9zbnymzgwrcl2sflz3";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
${python.executable} ./configure.py \
|
||||
--sip-module PyQt5.sip \
|
||||
--sip-module ${sip-module} \
|
||||
-d $out/lib/${python.libPrefix}/site-packages \
|
||||
-b $out/bin -e $out/include
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Creates C++ bindings for Python modules";
|
||||
homepage = "http://www.riverbankcomputing.co.uk/";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python, cmake
|
||||
, pyqt5, numpy, scipy, libarcus, doxygen, gettext, pythonOlder }:
|
||||
, pyqt5, numpy, scipy, shapely, libarcus, doxygen, gettext, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.5.1";
|
||||
version = "3.6.0";
|
||||
pname = "uranium";
|
||||
format = "other";
|
||||
|
||||
@@ -10,13 +10,13 @@ buildPythonPackage rec {
|
||||
owner = "Ultimaker";
|
||||
repo = "Uranium";
|
||||
rev = version;
|
||||
sha256 = "1qfci5pl4yhirkkck1rm4i766j8gi56p81mfc6vgbdnhchcjyhy9";
|
||||
sha256 = "02hid13h8anb9bgv2hhrcdg10bxdxa9hj9pbdv3gw3lpn9r2va98";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.5.0";
|
||||
|
||||
buildInputs = [ python gettext ];
|
||||
propagatedBuildInputs = [ pyqt5 numpy scipy libarcus ];
|
||||
propagatedBuildInputs = [ pyqt5 numpy scipy shapely libarcus ];
|
||||
nativeBuildInputs = [ cmake doxygen ];
|
||||
|
||||
postPatch = ''
|
||||
@@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python framework for building Desktop applications";
|
||||
homepage = https://github.com/Ultimaker/Uranium;
|
||||
license = licenses.agpl3;
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user