Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-06-23 15:38:41 +02:00
99 changed files with 629 additions and 364 deletions

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "aiorpcx";
version = "0.18.3";
version = "0.17.0";
src = fetchPypi {
inherit version;
pname = "aiorpcX";
sha256 = "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp";
sha256 = "14np5r75rs0v45vsv20vbzmnv3qisvm9mdllj1j9s1633cvcik0k";
};
propagatedBuildInputs = [ attrs ];

View File

@@ -25,11 +25,11 @@ let
package = buildPythonPackage rec {
pname = "buildbot";
version = "2.3.0";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "1fdahbpihs93pj640y2079yilca6w7vlwirfcz221885ih148257";
sha256 = "0qzr6my8zvaj0a1jwyaf254rdgm1xcyq8zp4b6fa5aqigfld4dfg";
};
propagatedBuildInputs = [

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "buildbot-pkg";
version = "2.3.0";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "1ajgvnhwvryi10q9bklpfazi7vxw2my9jlqgwnjccycbr6yznzsw";
sha256 = "0bpqiih15b5kzx1r542m8j7ydbnmgzhdnkaxv0z7gjv21k78m5i5";
};
postPatch = ''

View File

@@ -11,7 +11,7 @@
src = fetchPypi {
inherit pname version format;
python = "py3";
sha256 = "134b8y498bq5fp4863hj9058wr7mcw0xgl74br0f1dy9n7jdcl39";
sha256 = "1ii01py78wkda9x4lqm0bxqmb4dhvbdmmz7sncm1lw7bhmhqh84w";
};
meta = with lib; {
@@ -28,7 +28,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "1yh8xij3wizz0f88chjpdijm7i35ql87g84ph3f76sqyr6aj6ckw";
sha256 = "1y523hadw3398jwfpmi2f4g0s6dp9y191qzycrsbvbj147dp0qra";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -48,7 +48,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "04iihy1s9r4n5jlk57pdjy3yvp6zym2iv2bgqjhw6fy0hff5j8ys";
sha256 = "1prfr03igcmagydvxqhrh6k6wz16vk6fwgrm143jh3xmml6f16ll";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -68,7 +68,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "0bcilhcz9xnr8799d5j4sm6qz8pdjlckdck7a282nfs64liajsrh";
sha256 = "1xkqiwxjppyns2s0239zzvbnr8b7vdakypj95mca89mmnyniflxj";
};
propagatedBuildInputs = [ buildbot-pkg ];
@@ -88,7 +88,7 @@
src = fetchPypi {
inherit pname version;
sha256 = "13lr7lzi9sv0s6xrfalq0dkcys6fp7hn0787rjhnz9gc7x83aqjv";
sha256 = "1jhvq61x0bzh03nd2ac11swdjn0ndnx3ac7x9v3m3v0pgr08rc28";
};
propagatedBuildInputs = [ buildbot-pkg ];

View File

@@ -1,12 +1,13 @@
{ lib, buildPythonPackage, fetchPypi, setuptoolsTrial, mock, twisted, future }:
{ lib, buildPythonPackage, fetchPypi, setuptoolsTrial, mock, twisted, future,
coreutils }:
buildPythonPackage (rec {
pname = "buildbot-worker";
version = "2.3.0";
version = "2.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "0nldf4ws1nrkhbapxiy2s8j9fjfbkhp17c5912p6qy3ximfcfa93";
sha256 = "0lvgqcayd4f32895g3cwrbnjw6p94nrggbq7wfz5mwbhpgg6hv52";
};
propagatedBuildInputs = [ twisted future ];
@@ -14,7 +15,8 @@ buildPythonPackage (rec {
checkInputs = [ setuptoolsTrial mock ];
postPatch = ''
substituteInPlace buildbot_worker/scripts/logwatcher.py --replace '/usr/bin/tail' "$(type -P tail)"
substituteInPlace buildbot_worker/scripts/logwatcher.py \
--replace /usr/bin/tail "${coreutils}/bin/tail"
'';
meta = with lib; {

View File

@@ -0,0 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "MIDIUtil";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "02m9sqv36zrzgz5zg2w9qmz8snzlm27yg3ways2hgipgs4xriykr";
};
meta = with stdenv.lib; {
homepage = "https://github.com/MarkCWirt/MIDIUtil";
description = "A pure python library for creating multi-track MIDI files";
license = licenses.mit;
maintainers = [ maintainers.gnidorah ];
};
}

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "r2pipe";
version = "1.3.1";
version = "1.4.1";
postPatch = let
r2lib = "${lib.getOutput "lib" radare2}/lib";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "0xvv12q3cwbibim3r97dsz6lbj7xxhlbq7fdm4pznwfzg803cmiv";
sha256 = "02r2xrnanzp7iskqbq8flzhc4d56hlzyf3qwqp3azys838y0kcyy";
};
# Tiny sanity check to make sure r2pipe finds radare2 (since r2pipe doesn't

View File

@@ -0,0 +1,38 @@
{ stdenv, buildPythonPackage, fetchPypi
, gfortran, glibcLocales
, numpy, scipy, pytest, pillow
}:
# 0.20.x is the last version that maintains python2 compatibility
buildPythonPackage rec {
pname = "scikit-learn";
version = "0.20.3";
# UnboundLocalError: local variable 'message' referenced before assignment
disabled = stdenv.isi686; # https://github.com/scikit-learn/scikit-learn/issues/5534
src = fetchPypi {
inherit pname version;
sha256 = "c503802a81de18b8b4d40d069f5e363795ee44b1605f38bc104160ca3bfe2c41";
};
buildInputs = [ pillow gfortran glibcLocales ];
propagatedBuildInputs = [ numpy scipy numpy.blas ];
checkInputs = [ pytest ];
LC_ALL="en_US.UTF-8";
doCheck = !stdenv.isAarch64;
# Skip test_feature_importance_regression - does web fetch
checkPhase = ''
cd $TMPDIR
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -k "not test_feature_importance_regression" --pyargs sklearn
'';
meta = with stdenv.lib; {
description = "A set of python modules for machine learning and data mining";
homepage = http://scikit-learn.org;
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}

View File

@@ -1,6 +1,13 @@
{ stdenv, buildPythonPackage, fetchPypi, python
, gfortran, glibcLocales, joblib, pythonOlder
, numpy, scipy, pytest, pillow, cython
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, gfortran, glibcLocales
, numpy, scipy, pytest, pillow
, cython
, joblib
, llvmPackages
, pythonOlder
}:
buildPythonPackage rec {
@@ -11,13 +18,28 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "0aafc312a55ebf58073151b9308761a5fcfa45b7f7730cea4b1f066f824c72db";
sha256 = "1nvj9j16y1hz9gm0qwzpnx2zmz55c63k1fai643migsyll9c7bqa";
};
buildInputs = [ pillow gfortran glibcLocales ];
propagatedBuildInputs = [ numpy scipy numpy.blas joblib ];
buildInputs = [
pillow
gfortran
glibcLocales
] ++ lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
numpy
scipy
numpy.blas
joblib
];
checkInputs = [ pytest ];
nativeBuildInputs = [ cython ];
LC_ALL="en_US.UTF-8";

View File

@@ -10,13 +10,13 @@
}:
buildPythonPackage rec {
pname = "PySoundFile";
version = "0.9.0.post1";
name = pname + "-" + version;
pname = "soundfile";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "43dd46a2afc0484c26930a7e59eef9365cee81bce7a4aadc5699f788f60d32c3";
pname = "SoundFile";
inherit version;
sha256 = "0w8mjadairg6av88090kwsridd0k115672b91zlcmf37r0c64zv3";
};
checkInputs = [ pytest ];
@@ -29,10 +29,11 @@ buildPythonPackage rec {
maintainers = with lib.maintainers; [ fridh ];
};
prePatch = ''
substituteInPlace soundfile.py --replace "'sndfile'" "'${libsndfile.out}/lib/libsndfile.so'"
postPatch = ''
substituteInPlace soundfile.py --replace "_find_library('sndfile')" "'${libsndfile.out}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
# https://github.com/bastibe/PySoundFile/issues/157
disabled = isPyPy || stdenv.isi686;
}