Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-07-13 09:45:40 +02:00
125 changed files with 2506 additions and 1528 deletions

View File

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

View File

@@ -0,0 +1,24 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, ipaddress, isPy27 }:
buildPythonPackage rec {
pname = "anonip";
version = "1.0.0";
src = fetchFromGitHub {
owner = "DigitaleGesellschaft";
repo = "Anonip";
rev = "v${version}";
sha256 = "0y5xqivcinp6pwx4whc8ca1n2wxrvff7a2lpbz2dhivilfanmljs";
};
propagatedBuildInputs = lib.optionals isPy27 [ ipaddress ];
checkPhase = "python tests.py";
meta = with stdenv.lib; {
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
description = "A tool to anonymize IP-addresses in log-files";
license = licenses.bsd3;
maintainers = [ maintainers.mmahut ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "deap";
version = "1.2.2";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "95c63e66d755ec206c80fdb2908851c0bef420ee8651ad7be4f0578e9e909bcf";
sha256 = "102r11pxb36xkq5bjv1lpkss77v278f5xdv6lvkbjdvqryydf3yd";
};
propagatedBuildInputs = [ numpy matplotlib ];
@@ -17,7 +17,7 @@ buildPythonPackage rec {
meta = with stdenv.lib; {
description = "DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas.";
homepage = https://github.com/DEAP/deap;
homepage = "https://github.com/DEAP/deap";
license = licenses.lgpl3;
maintainers = with maintainers; [ psyanticy ];
};

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "fasttext";
version = "0.2.0";
version = "0.9.1";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = version;
sha256 = "1fcrz648r2s80bf7vc0l371xillz5jk3ldaiv9jb7wnsyri831b4";
rev = "v${version}";
sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
};
buildInputs = [ pybind11 ];

View File

@@ -1,28 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, flask, pytest, pytestcov }:
{ lib, buildPythonPackage, fetchPypi, flask, pytest, pytestcov, pytest-xprocess }:
buildPythonPackage rec {
pname = "Flask-Caching";
version = "1.4.0";
version = "1.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "e34f24631ba240e09fe6241e1bf652863e0cff06a1a94598e23be526bc2e4985";
sha256 = "17jnnmnpdflv120yhsfbnpick06iias6f2hcxmf1mi1nr35kdqjj";
};
propagatedBuildInputs = [ flask ];
checkInputs = [ pytest pytestcov ];
checkInputs = [ pytest pytestcov pytest-xprocess ];
# backend_cache relies on pytest-cache, which is a stale package from 2013
checkPhase = ''
py.test
pytest -k 'not backend_cache'
'';
# https://github.com/sh4nks/flask-caching/pull/74
doCheck = false;
meta = with lib; {
description = "Adds caching support to your Flask application";
homepage = https://github.com/sh4nks/flask-caching;
homepage = "https://github.com/sh4nks/flask-caching";
license = licenses.bsd3;
};
}

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
version = "0.32.0";
version = "0.35.2";
pname = "M2Crypto";
src = fetchPypi {
inherit pname version;
sha256 = "09d3zs2ivyxbi0fa42mnan0fcplc08q2qd70p1b43sxxdbxcdj99";
sha256 = "09yirf3w77w6f49q6nxhrjm9c3a4y9s30s1k09chqrw8zdgx8sjc";
};
patches = [

View File

@@ -18,12 +18,12 @@
}:
buildPythonPackage rec {
version = "0.6.7";
version = "0.6.8";
pname = "msrest";
src = fetchPypi {
inherit pname version;
sha256 = "07136g3j7zgcvkxki4v6q1p2dm1nzzc28181s8dwic0y4ml8qlq5";
sha256 = "0yd43fnmfxkvk3idkyn67ziwjgkwkn261kicr3szjibpqjqcpsf9";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,31 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, flask, werkzeug, setuptools_scm }:
buildPythonPackage rec {
pname = "pytest-flask";
version = "0.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "0jdzrib94vwfpl8524h34aqzqndh3h4xn706v32xh412c8dphx6q";
};
doCheck = false;
buildInputs = [
pytest
];
propagatedBuildInputs = [
flask
werkzeug
];
nativeBuildInputs = [ setuptools_scm ];
meta = with stdenv.lib; {
homepage = "https://github.com/pytest-dev/pytest-flask/";
license = licenses.mit;
description = "A set of py.test fixtures to test Flask applications";
maintainers = with maintainers; [ vanschelven ];
};
}

View File

@@ -0,0 +1,32 @@
{ lib, buildPythonPackage, fetchPypi
, psutil
, pytest
}:
buildPythonPackage rec {
pname = "pytest-xprocess";
version = "0.12.1";
src = fetchPypi {
inherit pname version;
sha256 = "06w2acg0shy0vxrmnxpqclimhgfjys5ql5kmmzr7r1lai46x1q2h";
};
propagatedBuildInputs = [ psutil pytest ];
# Remove test QoL package from install_requires
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-cache', " ""
'';
# There's no tests in repo
doCheck = false;
meta = with lib; {
description = "Pytest external process plugin";
homepage = "https://github.com/pytest-dev";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, deap, scikitlearn, python }:
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, deap, scikitlearn, python, isPy3k }:
buildPythonPackage rec {
pname = "sklearn-deap";
@@ -23,6 +23,7 @@ buildPythonPackage rec {
homepage = https://github.com/rsteca/sklearn-deap;
license = licenses.lgpl3;
maintainers = with maintainers; [ psyanticy ];
broken = isPy3k; # https://github.com/rsteca/sklearn-deap/issues/65
};
}

View File

@@ -34,7 +34,9 @@ buildPythonPackage rec {
prePatch = ''
substituteInPlace setup.py \
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6"
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6" \
--replace "regex==" "regex>=" \
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.32.0"
'';
propagatedBuildInputs = [

View File

@@ -1,7 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest_3
, isPyPy
}:
@@ -16,7 +15,7 @@ buildPythonPackage rec {
sha256 = "1s4radwf38kdh3jrn5acbidqlr66sx786fkwi0rgq61hn4n2bdqw";
};
checkInputs = [ pytest_3 ];
doCheck = false;
postPatch = ''
# fails

View File

@@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytest, mock }:
buildPythonPackage rec {
pname = "swagger-spec-validator";
version = "2.4.3";
src = fetchFromGitHub {
owner = "Yelp";
repo = "swagger_spec_validator";
rev = "v" + version;
sha256 = "02f8amc6iq2clxxmrz8hirbb57sizaxijp0higqy16shk63ibalw";
};
checkInputs = [
pytest
mock
];
checkPhase = ''
pytest tests
'';
propagatedBuildInputs = [
pyyaml
jsonschema
six
];
meta = with lib; {
homepage = "https://github.com/Yelp/swagger_spec_validator";
license = licenses.asl20;
description = "Validation of Swagger specifications";
maintainers = with maintainers; [ vanschelven ];
};
}

View File

@@ -28,11 +28,11 @@
buildPythonPackage rec {
pname = "thinc";
version = "7.0.4";
version = "7.0.6";
src = fetchPypi {
inherit pname version;
sha256 = "14v8ygjrkj63dwd4pi490ld6i2d8n8wzcf15hnacjjfwij93pa1q";
sha256 = "12d0766z7ksqpqrvldi46mx0z4zsbgncda4fpvxra1d6vbchf8ba";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
@@ -81,6 +81,6 @@ buildPythonPackage rec {
description = "Practical Machine Learning for NLP in Python";
homepage = https://github.com/explosion/thinc;
license = licenses.mit;
maintainers = with maintainers; [ aborsu sdll ];
maintainers = with maintainers; [ aborsu danieldk sdll ];
};
}