Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2020-01-15 09:23:28 +01:00
163 changed files with 2986 additions and 913 deletions

View File

@@ -0,0 +1,22 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "avro-python3";
version = "1.8.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "f82cf0d66189600b1e6b442f650ad5aca6c189576723dcbf6f9ce096eab81bd6";
};
doCheck = false; # No such file or directory: './run_tests.py
meta = with lib; {
description = "A serialization and RPC framework";
homepage = https://pypi.python.org/pypi/avro-python3/;
license = licenses.asl20;
maintainers = [ maintainers.shlevy maintainers.timma ];
};
}

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder
, six, typing, pygments
, django, shortuuid, python-dateutil, pytest
, pytest-django, pytestcov, mock, vobject
@@ -16,6 +16,15 @@ buildPythonPackage rec {
sha256 = "0053yqq4vq3mwy7zkfs5vfm3g8j9sfy3vrc6xby83qlj9wz43ipi";
};
# This patch fixes a single failing test and can be removed when updating this pkg
# to the next version
patches = [
(fetchpatch {
url = "https://github.com/django-extensions/django-extensions/commit/1d21786da2e6868d98ae34c82079e1e03ad1aa97.patch";
sha256 = "0d81zpj0f8a7ijrfb12j0b67fgj89k3axaskz1nwqsr4wc6n4bw2";
})
];
postPatch = ''
substituteInPlace setup.py --replace "'tox'," ""

View File

@@ -0,0 +1,27 @@
{ lib, fetchFromGitHub, buildPythonPackage, python, lxml }:
buildPythonPackage rec {
pname = "gpxpy";
version = "1.3.5";
src = fetchFromGitHub {
owner = "tkrajina";
repo = pname;
rev = "v${version}";
sha256 = "18r7pfda7g3l0hv8j9565n52cvvgjxiiqqzagfdfaba1djgl6p8b";
};
propagatedBuildInputs = [ lxml ];
checkPhase = ''
${python.interpreter} -m unittest test
'';
meta = with lib; {
description = "Python GPX (GPS eXchange format) parser";
homepage = "https://github.com/tkrajina/gpxpy";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ sikmir ];
};
}

View File

@@ -0,0 +1,78 @@
{ lib
, fetchpatch
, buildPythonPackage
, fetchPypi
, pythonOlder
, isPy27
, cmake
, protobuf
, numpy
, six
, typing-extensions
, typing
, pytestrunner
, pytest
, nbval
, tabulate
}:
buildPythonPackage rec {
pname = "onnx";
version = "1.6.0";
# Due to Protobuf packaging issues this build of Onnx with Python 2 gives
# errors on import
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0ig33jl3591041lyylxp52yi20rfrcqx3i030hd6al8iabzc721v";
};
# Remove the unqualified requirement for the typing package for running the
# tests. typing is already required for the installation, where it is
# correctly qualified so as to only be required for sufficiently old Python
# versions.
# This patch should be in the next release (>1.6).
patches = [
(fetchpatch {
url = "https://github.com/onnx/onnx/commit/c963586d0f8dd5740777b2fd06f04ec60816de9f.patch";
sha256 = "1hl26cw5zckc91gmh0bdah87jyprccxiw0f4i5h1gwkq28hm6wbj";
})
];
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [
protobuf
numpy
six
typing-extensions
] ++ lib.optional (pythonOlder "3.5") [ typing ];
checkInputs = [
pytestrunner
pytest
nbval
tabulate
];
postPatch = ''
patchShebangs tools/protoc-gen-mypy.py
'';
# The executables are just utility scripts that aren't too important
postInstall = ''
rm -r $out/bin
'';
# The setup.py does all the configuration (running CMake)
dontConfigure = true;
meta = {
homepage = http://onnx.ai;
description = "Open Neural Network Exchange";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.acairncross ];
};
}

View File

@@ -10,11 +10,8 @@ buildPythonPackage rec {
};
# fix the ASCII-mode LICENSE file read
# disable test_fetch and the doctests (which also invoke fetch)
patchPhase = stdenv.lib.optionalString isPy3k ''
sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py
'' + ''
postPatch = ''
sed -i -e "/def test_fetch/i\\
\\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
'';

View File

@@ -0,0 +1,37 @@
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib
# pythonPackages
, pylint-plugin-utils
}:
buildPythonPackage rec {
pname = "pylint-celery";
version = "0.3";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = version;
sha256 = "05fhwraq12c2724pn4py1bjzy5rmsrb1x68zck73nlp5icba6yap";
};
propagatedBuildInputs = [
pylint-plugin-utils
];
# Testing requires a very old version of pylint, incompatible with other dependencies
doCheck = false;
meta = with lib; {
description = "A Pylint plugin to analyze Celery applications";
homepage = "https://github.com/PyCQA/pylint-celery";
license = licenses.gpl2;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -0,0 +1,39 @@
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib
# pythonPackages
, django
, pylint-plugin-utils
}:
buildPythonPackage rec {
pname = "pylint-django";
version = "2.0.12";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "0ha06wpqqn5fp5dapgjhsdx3ahh3y62l7k2f3czlrdjmmivgdp9y";
};
propagatedBuildInputs = [
django
pylint-plugin-utils
];
# Testing requires checkout from other repositories
doCheck = false;
meta = with lib; {
description = "A Pylint plugin to analyze Django applications";
homepage = "https://github.com/PyCQA/pylint-django";
license = licenses.gpl2;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -0,0 +1,36 @@
{ buildPythonPackage
, fetchPypi
, isPy3k
, lib
# pythonPackages
, pylint-plugin-utils
}:
buildPythonPackage rec {
pname = "pylint-flask";
version = "0.6";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "05qmwgkpvaa5k05abqjxfbrfk3wpdqb8ph690z7bzxvb47i7vngl";
};
propagatedBuildInputs = [
pylint-plugin-utils
];
# Tests require a very old version of pylint
# also tests are only available at GitHub, with an old release tag
doCheck = false;
meta = with lib; {
description = "A Pylint plugin to analyze Flask applications";
homepage = "https://github.com/jschaf/pylint-flask";
license = licenses.gpl2;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytest
}:
buildPythonPackage rec {
pname = "pynrrd";
version = "0.4.2";
src = fetchFromGitHub {
owner = "mhe";
repo = pname;
rev = "v${version}";
sha256 = "1wn3ara3i19fi1y9a5j4imyczpa6dkkzd5djggxg4kkl1ff9awrj";
};
propagatedBuildInputs = [ numpy ];
meta = with lib; {
homepage = https://github.com/mhe/pynrrd;
description = "Simple pure-Python reader for NRRD files";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}

View File

@@ -0,0 +1,39 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, appdirs
, click
, construct
, cryptography
, pytest
, zeroconf
, attrs
, pytz
, tqdm
, netifaces
}:
buildPythonPackage rec {
pname = "python-miio";
version = "0.4.8";
src = fetchPypi {
inherit pname version;
sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "Python library for interfacing with Xiaomi smart appliances";
homepage = https://github.com/rytilahti/python-miio;
license = licenses.gpl3;
maintainers = with maintainers; [ flyfloh ];
};
}

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, olm,
cffi, future, typing }:
cffi, future, isPy3k, typing }:
buildPythonPackage {
pname = "python-olm";
@@ -15,8 +15,7 @@ buildPythonPackage {
propagatedBuildInputs = [
cffi
future
typing
];
] ++ lib.optionals (!isPy3k) [ typing ];
doCheck = false;

View File

@@ -4,6 +4,7 @@
, lib
# pythonPackages
, astroid
, pytest
}:
@@ -13,12 +14,16 @@ buildPythonPackage rec {
disabled = isPy27;
src = fetchFromGitHub {
owner = "yuvadm";
owner = "landscapeio";
repo = pname;
rev = version;
sha256 = "15s0n1lhkz0zwi33waqkkjipal3f7s45rxsj1bw89xpr4dj87qx5";
sha256 = "1sfmm7daz0kpdx6pynsvi6qlfhrzxx783l1wb69c8dfzya4xssym";
};
propagatedBuildInputs = [
astroid
];
checkInputs = [
pytest
];

View File

@@ -13,6 +13,7 @@
, pyramid
, rq
, sanic
, sqlalchemy
, stdenv
, tornado
, urllib3
@@ -27,7 +28,7 @@ buildPythonPackage rec {
sha256 = "c6b919623e488134a728f16326c6f0bcdab7e3f59e7f4c472a90eea4d6d8fe82";
};
checkInputs = [ django flask tornado bottle rq falcon ]
checkInputs = [ django flask tornado bottle rq falcon sqlalchemy ]
++ stdenv.lib.optionals isPy3k [ celery pyramid sanic aiohttp ];
propagatedBuildInputs = [ urllib3 certifi ];

View File

@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "solo-python";
version = "0.0.18";
version = "0.0.21";
format = "flit";
disabled = pythonOlder "3.6"; # only python>=3.6 is supported
@@ -11,7 +11,7 @@
owner = "solokeys";
repo = pname;
rev = version;
sha256 = "01mgppjvxlr93vrgz7bzisghpg1vqyaj4cg5wngk0h499iyx4d9q";
sha256 = "07r451dp3ma1mh735b2kjv86a4jkjhmag70cjqf73z7b61dmzl1q";
};
# replaced pinned fido, with unrestricted fido version
@@ -48,6 +48,5 @@
homepage = "https://github.com/solokeys/solo-python";
maintainers = with maintainers; [ wucke13 ];
license = with licenses; [ asl20 mit ];
broken = true; # no longer compatible with fido2
};
}

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "srsly";
version = "0.2.0";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0gha1xfh64mapvgn0sghnjsvmjdrh5rywhs3j3bhkvwk42kf40ma";
sha256 = "0d49a90gsfyxwp8g14mvvw1kjm77qgx86zg4812kcmlz9ycb80hi";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.4") pathlib;

View File

@@ -0,0 +1,47 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, stups-cli-support
, stups-zign
, pytest
, pytestcov
, hypothesis
, isPy3k
}:
buildPythonPackage rec {
pname = "stups-pierone";
version = "1.1.45";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "pierone-cli";
rev = version;
sha256 = "1ggfizw27wpcagbbk15xpfrhq6b250cx4278b5d7y8s438g128cs";
};
propagatedBuildInputs = [
requests
stups-cli-support
stups-zign
];
preCheck = "
export HOME=$TEMPDIR
";
checkInputs = [
pytest
pytestcov
hypothesis
];
meta = with lib; {
description = "Convenient command line client for STUPS' Pier One Docker registry";
homepage = "https://github.com/zalando-stups/pierone-cli";
license = licenses.asl20;
maintainers = [ maintainers.mschuwalow ];
};
}