Merge branch 'master' into staging-next
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioesphomeapi";
|
||||
version = "2.0.1";
|
||||
version = "2.2.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "db09e34dfc148279f303481c7da94b84c9b1442a41794f039c31253e81a58ffb";
|
||||
sha256 = "0znal1hi964acc8bl3z0ikscax7zziks838ld099rjsbffjwmwn5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ attrs protobuf zeroconf ];
|
||||
@@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Client for ESPHome native API";
|
||||
homepage = https://github.com/esphome/aioesphomeapi;
|
||||
homepage = "https://github.com/esphome/aioesphomeapi";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ pkgs
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, azure-nspkg
|
||||
, isPyPy
|
||||
, setuptools
|
||||
, python
|
||||
, isPy3k
|
||||
}:
|
||||
@@ -20,7 +21,7 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
azure-nspkg
|
||||
];
|
||||
] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
|
||||
|
||||
postInstall = if isPy3k then "" else ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
@@ -28,7 +29,7 @@ buildPythonPackage rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
meta = with lib; {
|
||||
description = "This is the Microsoft Azure common code";
|
||||
homepage = https://github.com/Azure/azure-sdk-for-python/tree/master/azure-common;
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -28,6 +28,7 @@ buildPythonPackage rec {
|
||||
|
||||
postInstall = if isPy3k then "" else ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect
|
||||
{ lib, buildPythonPackage, fetchPypi, libredirect
|
||||
, case, pytest, boto3, moto, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||
}:
|
||||
|
||||
@@ -17,19 +17,17 @@ buildPythonPackage rec {
|
||||
--replace "pytest>=4.3.1,<4.4.0" pytest
|
||||
'';
|
||||
|
||||
# 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 = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
unset NIX_REDIRECTS LD_PRELOAD
|
||||
# ignore test that's incompatible with pytest5
|
||||
# test_eventlet touches network
|
||||
checkPhase = ''
|
||||
pytest -k 'not restore_current_app_fallback' \
|
||||
--ignore=t/unit/concurrency/test_eventlet.py
|
||||
'';
|
||||
|
||||
checkInputs = [ case pytest boto3 moto ];
|
||||
propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/celery/celery/;
|
||||
description = "Distributed task queue";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
checkPhase = ''
|
||||
substituteInPlace pytest.ini --replace "--doctest-modules" "" --replace "-n auto" ""
|
||||
${lib.optionalString (pythonAtLeast "3.7") "sed -i '/warnings/,+2d' pytest.ini"}
|
||||
pytest ${lib.optionalString stdenv.isDarwin "--deselect=cheroot/test/test_ssl.py::test_http_over_https_error --deselect=cheroot/test/test_server.py::test_bind_addr_unix"}
|
||||
pytest -k 'not tls' ${lib.optionalString stdenv.isDarwin "--deselect=cheroot/test/test_ssl.py::test_http_over_https_error --deselect=cheroot/test/test_server.py::test_bind_addr_unix"}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy36 }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "demjson";
|
||||
version = "2.2.4";
|
||||
disabled = isPy36;
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{ lib , buildPythonPackage, fetchPypi, isPy27
|
||||
{ lib , buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, falcon
|
||||
, pytestrunner
|
||||
, requests
|
||||
, pytest
|
||||
, marshmallow
|
||||
, mock
|
||||
, numpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -9,16 +13,22 @@ buildPythonPackage rec {
|
||||
version = "2.6.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0iamrzjy8z1xibynkgfl6cn2sbm66awxbp75b26pi32fc41d0k50";
|
||||
src = fetchFromGitHub {
|
||||
owner = "hugapi";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
propagatedBuildInputs = [ falcon requests ];
|
||||
|
||||
# tests are not shipped in the tarball
|
||||
doCheck = false;
|
||||
checkInputs = [ mock marshmallow pytest numpy ];
|
||||
checkPhase = ''
|
||||
mv hug hug.hidden
|
||||
# some tests attempt network access
|
||||
PATH=$out/bin:$PATH pytest -k "not (test_request or test_datagram_request)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
||||
|
||||
@@ -21,6 +21,8 @@ buildPythonPackage rec {
|
||||
cmake
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
# we never actually explicitly call the install command so this is the only way
|
||||
# to inject these options to it - however, openmp-library doesn't appear to have
|
||||
# any effect, so we have to inject it into NIX_LDFLAGS manually below
|
||||
|
||||
@@ -1,29 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
, nose
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "minidb";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/thp/minidb/archive/${version}.tar.gz";
|
||||
sha256 = "17rvkpq8v7infvbgsi48vnxamhxb3f635nqn0sln7yyvh4i9k8a0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "thp";
|
||||
repo = "minidb";
|
||||
rev = version;
|
||||
sha256 = "14y5vf8vhgviczhzy9h3xv99fjvrg975nz4w1fj5c1jv37da1lq3";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
# module imports are incompatible with python2
|
||||
doCheck = isPy3k;
|
||||
checkInputs = [ nose pytest ];
|
||||
checkPhase = ''
|
||||
nosetests test
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A simple SQLite3-based store for Python objects";
|
||||
homepage = https://thp.io/2010/minidb/;
|
||||
license = stdenv.lib.licenses.isc;
|
||||
maintainers = [ stdenv.lib.maintainers.tv ];
|
||||
homepage = "https://thp.io/2010/minidb/";
|
||||
license = licenses.isc;
|
||||
maintainers = [ maintainers.tv ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -14,11 +12,14 @@ buildPythonPackage rec {
|
||||
sha256 = "7a649c6fae61635519d12a6bcacc742241aad1bff3230baef2cedd693ed9cfe8";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/mooz/percol;
|
||||
description = "Adds flavor of interactive filtering to the traditional pipe concept of shell";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
broken = true; # missing cmigemo package which is missing libmigemo.so
|
||||
# also doesn't support python3
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, nose
|
||||
, mock
|
||||
, pyyaml
|
||||
, unittest2
|
||||
, pyev
|
||||
, twisted
|
||||
, tornado
|
||||
}:
|
||||
@@ -20,11 +16,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1gqx9avb9nwgiyw5nz08bf99v9b0hvzr1pmqn9wbhd2hnsj6p9wz";
|
||||
};
|
||||
|
||||
# Tests require twisted which is only availalble for python-2.x
|
||||
doCheck = !isPy3k;
|
||||
|
||||
buildInputs = [ nose mock pyyaml unittest2 pyev ]
|
||||
++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ];
|
||||
checkInputs = [ nose mock twisted tornado ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, libev }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyev";
|
||||
version = "0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pyev/${pname}-${version}.tar.gz";
|
||||
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
|
||||
};
|
||||
|
||||
buildInputs = [ libev ];
|
||||
|
||||
libEvSharedLibrary =
|
||||
if !stdenv.isDarwin
|
||||
then "${libev}/lib/libev.so.4"
|
||||
else "${libev}/lib/libev.4.dylib";
|
||||
|
||||
postPatch = ''
|
||||
test -f "${libEvSharedLibrary}" || { echo "ERROR: File ${libEvSharedLibrary} does not exist, please fix nix expression for pyev"; exit 1; }
|
||||
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"${libEvSharedLibrary}\"|" setup.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python bindings for libev";
|
||||
homepage = https://code.google.com/p/pyev/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -6,6 +6,8 @@ buildPythonPackage rec {
|
||||
version = "5.1.0";
|
||||
pname = "pytest";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
preCheck = ''
|
||||
# don't test bash builtins
|
||||
rm testing/test_argcomplete.py
|
||||
@@ -19,7 +21,6 @@ buildPythonPackage rec {
|
||||
checkInputs = [ hypothesis mock ];
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites wcwidth packaging ]
|
||||
++ stdenv.lib.optionals (!isPy3k) [ funcsigs ]
|
||||
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
|
||||
|
||||
doCheck = !isPyPy; # https://github.com/pytest-dev/pytest/issues/3460
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, gfortran, glibcLocales
|
||||
, numpy, scipy, pytest, pillow
|
||||
, cython
|
||||
@@ -40,6 +41,15 @@ buildPythonPackage rec {
|
||||
];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
patches = [
|
||||
# Fixes tests by changing threshold of a test-case that broke
|
||||
# with numpy versions >= 1.17. This should be removed for versions > 0.21.2.
|
||||
( fetchpatch {
|
||||
url = "https://github.com/scikit-learn/scikit-learn/commit/b730befc821caec5b984d9ff3aa7bc4bd7f4d9bb.patch";
|
||||
sha256 = "0z36m05mv6d494qwq0688rgwa7c4bbnm5s2rcjlrp29fwn3fy1bv";
|
||||
})
|
||||
];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
doCheck = !stdenv.isAarch64;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, pbr
|
||||
, pytest
|
||||
}:
|
||||
@@ -16,7 +17,9 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ pbr ];
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ ];
|
||||
|
||||
# test suite uses new async primitives
|
||||
doCheck = !isPy27;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/codingjoe/ssdp;
|
||||
|
||||
@@ -19,6 +19,10 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ kazoo six ];
|
||||
buildInputs = [ testtools ];
|
||||
checkPhase = ''
|
||||
# Skip test - fails with our new kazoo version
|
||||
substituteInPlace zake/tests/test_client.py \
|
||||
--replace "test_child_watch_no_create" "_test_child_watch_no_create"
|
||||
|
||||
${python.interpreter} -m unittest discover zake/tests
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user