Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2021-03-04 22:11:37 +01:00
128 changed files with 1825 additions and 1083 deletions

View File

@@ -1,41 +1,75 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, curve25519-donna, ed25519
, cryptography, ecdsa, zeroconf, pytestCheckHook }:
{ lib
, buildPythonPackage
, cryptography
, curve25519-donna
, ecdsa
, ed25519
, fetchFromGitHub
, h11
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "HAP-python";
version = "3.1.0";
version = "3.3.2";
disabled = pythonOlder "3.5";
# pypi package does not include tests
src = fetchFromGitHub {
owner = "ikalchev";
repo = pname;
rev = "v${version}";
sha256 = "1qg38lfjby2xfm09chzc40a7i3b84kgyfs7g4xq8f5m8s39hg6d7";
sha256 = "sha256-oDTyFIhf7oogYyh9LpmVtagi1kDXLCc/7c2UH1dL2Sg=";
};
disabled = !isPy3k;
propagatedBuildInputs = [
curve25519-donna
ed25519
cryptography
curve25519-donna
ecdsa
ed25519
h11
zeroconf
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
disabledTests = [
#disable tests needing network
"test_persist"
"test_setup_endpoints"
# Disable tests needing network
"camera"
"pair"
"test_async_subscribe_client_topic"
"test_auto_add_aid_mac"
"test_service_callbacks"
"test_send_events"
"test_not_standalone_aid"
"test_start_stop_async_acc"
"test_connection_management"
"test_crypto_failure_closes_connection"
"test_empty_encrypted_data"
"test_external_zeroconf"
"test_start_stop_sync_acc"
"test_get_accessories"
"test_get_characteristics"
"test_handle_set_handle_set"
"test_handle_snapshot_encrypted_non_existant_accessory"
"test_http_11_keep_alive"
"test_http10_close"
"test_mdns_service_info"
"test_mixing_service_char_callbacks_partial_failure"
"test_not_standalone_aid"
"test_persist"
"test_push_event"
"test_send_events"
"test_service_callbacks"
"test_set_characteristics_with_crypto"
"test_setup_endpoints"
"test_start"
"test_upgrade_to_encrypted"
"test_we_can_start_stop"
"test_xhm_uri"
];
meta = with lib; {

View File

@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "bleach";
version = "3.2.3";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "c6ad42174219b64848e2e2cd434e44f56cd24a93a9b4f8bc52cfed55a1cd5aad";
sha256 = "sha256-mLMXBznl6D3Z3BljPwdHJ62EjL7bYCZwjIrC07aXpDM=";
};
checkInputs = [ pytest pytestrunner ];

View File

@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "boto3";
version = "1.17.18"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.17.20"; # N.B: if you change this, change botocore and awscli to a matching version
src = fetchPypi {
inherit pname version;
sha256 = "sha256-NXCjwPvYC8swRJ+Hz50vertn+sKl4xfQAvmSHFm+mxc=";
sha256 = "sha256-Ihnx6+iNJmr6VRb5k5g+uodCuVf6T9aFTzxzqjAw6TE=";
};
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "botocore";
version = "1.20.18"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.20.20"; # N.B: if you change this, change boto3 and awscli to a matching version
src = fetchPypi {
inherit pname version;
sha256 = "sha256-UZALENpK5FvksWBF5bL/fRFYp5VdnXzF5am6MXDxBYY=";
sha256 = "sha256-gMMqgfse6L36B0p5v7iFuyAG6Kl4LyNTwMn2OScE4To=";
};
propagatedBuildInputs = [

View File

@@ -13,12 +13,12 @@
}:
buildPythonPackage rec {
version = "0.20.19";
version = "0.20.20";
pname = "dulwich";
src = fetchPypi {
inherit pname version;
sha256 = "7a5c976c5ce737ec207be1815c654351bf1d0387fc6480ed32cd58c9d0e2cda9";
sha256 = "sha256-QmlZuXBfrcxsgg5a3zKR1xpIq6CvzPdBFCLjMI8RX4c=";
};
LC_ALL = "en_US.UTF-8";

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "exdown";
version = "0.7.1";
version = "0.8.5";
format = "pyproject";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-vnSso3vmPIjX7JX+NwoxguwqwPHocJACeh5H0ClPcUI=";
sha256 = "1ly67whyfn74nr0dncarf3xbd96hacvzgjihx4ibckkc4h9z46bj";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];

View File

@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, netcdf4
, h5py
, exdown
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "meshio";
version = "4.3.10";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "1i34bk8bbc0dnizrlgj0yxnbzyvndkmnl6ryymxgcl9rv1abkfki";
};
propagatedBuildInputs = [
numpy
netcdf4
h5py
];
checkInputs = [
exdown
pytestCheckHook
];
pythonImportsCheck = ["meshio"];
meta = with lib; {
homepage = "https://github.com/nschloe/meshio";
description = "I/O for mesh files.";
license = licenses.mit;
maintainers = with maintainers; [ wd15 ];
};
}

View File

@@ -1,6 +1,5 @@
{ buildPackages
, lib
, stdenv
, fetchpatch
, python
, buildPythonPackage

View File

@@ -18,7 +18,6 @@ buildPythonPackage rec {
pname = "pyside-shiboken";
version = "1.2.4";
format = "other";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "PySide";

View File

@@ -33,6 +33,9 @@ buildPythonPackage rec {
pytestCheckHook
];
# AttributeError: 'KeywordMapping' object has no attribute 'get'
doCheck = ! isPy27;
disabledTests = [
# Disable tests that require network access and use httpbin
"requests.api.request"
@@ -56,7 +59,5 @@ buildPythonPackage rec {
homepage = "http://docs.python-requests.org/en/latest/";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
# AttributeError: 'KeywordMapping' object has no attribute 'get'
broken = isPy27;
};
}

View File

@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "sagemaker";
version = "2.27.0";
version = "2.28.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-1u5icjqz23j0QUToStZZMklBAYF4A1cfBqzg83MQAQI=";
sha256 = "sha256-SOk4VM227gAlLX615xPy0lcATRzth7M3HGH557iF2Wc=";
};
pythonImportsCheck = [

View File

@@ -9,15 +9,21 @@
, cython
, python
, sympy
, meshio
, mpi4py
, psutil
, openssh
, pythonOlder
}:
buildPythonPackage rec {
name = "sfepy_${version}";
version = "2019.4";
name = "sfepy";
version = "2020.4";
disabled = pythonOlder "3.8";
src = fetchurl {
url="https://github.com/sfepy/sfepy/archive/release_${version}.tar.gz";
sha256 = "1l9vgcw09l6bwhgfzlbn68fzpvns25r6nkd1pcp7hz5165hs6zzn";
sha256 = "1wb0ik6kjg3mksxin0abr88bhsly67fpg36qjdzabhj0xn7j1yaz";
};
propagatedBuildInputs = [
@@ -28,12 +34,15 @@ buildPythonPackage rec {
pyparsing
tables
sympy
meshio
mpi4py
psutil
openssh
];
postPatch = ''
# broken test
rm tests/test_homogenization_perfusion.py
rm tests/test_splinebox.py
# broken tests
rm tests/test_meshio.py
# slow tests
rm tests/test_input_*.py
@@ -47,6 +56,7 @@ buildPythonPackage rec {
'';
checkPhase = ''
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
export HOME=$TMPDIR
mv sfepy sfepy.hidden
mkdir -p $HOME/.matplotlib

View File

@@ -1,5 +1,4 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, sphinx