Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2021-06-02 13:08:16 +00:00
committed by GitHub
52 changed files with 17642 additions and 577 deletions

View File

@@ -1,33 +0,0 @@
{ fetchPypi, buildPythonPackage, lib
, requests, beautifulsoup4, six, lxml
, pytestrunner, requests-mock, pytestcov, pytest
}:
buildPythonPackage rec {
pname = "MechanicalSoup";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "37d3b15c1957917d3ae171561e77f4dd4c08c35eb4500b8781f6e7e1bb6c4d07";
};
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
# Requires network
doCheck = false;
postPatch = ''
# Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';
meta = with lib; {
description = "A Python library for automating interaction with websites";
homepage = "https://github.com/hickford/MechanicalSoup";
license = licenses.mit;
maintainers = [ maintainers.jgillich ];
};
}

View File

@@ -8,6 +8,7 @@
, openssl
, publicsuffix-list
, isPy27
, libiconv
, CoreFoundation
, Security
}:
@@ -37,7 +38,7 @@ buildPythonPackage rec {
++ (with rustPlatform; [ cargoSetupHook maturinBuildHook ]);
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
++ lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ];
PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
@@ -49,7 +50,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python wrapper for Brave's adblocking library, which is written in Rust";
homepage = "https://github.com/ArniDagur/python-adblock/";
maintainers = with maintainers; [ petabyteboy ];
maintainers = with maintainers; [ petabyteboy dotlambda ];
license = with licenses; [ asl20 mit ];
};
}

View File

@@ -1,19 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, setuptools-scm
, alarmdecoder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "adext";
version = "0.4.1";
version = "0.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "1yz1rpfvhbf7kfjck5vadbj9rd3bkx5248whaa3impdrjh7vs03x";
src = fetchFromGitHub {
owner = "ajschmidt8";
repo = pname;
rev = "v${version}";
sha256 = "0h5k9kzms2f0r48pdhsgv8pimk0vsxw8vs0k6880mank8ij914wr";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
@@ -22,8 +27,10 @@ buildPythonPackage rec {
alarmdecoder
];
# Tests are not published yet
doCheck = false;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "adext" ];
meta = with lib; {

View File

@@ -1,27 +1,35 @@
{ lib, fetchPypi, buildPythonPackage, python, isPy3k, glibcLocales }:
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pyparsing
, python
}:
buildPythonPackage rec {
pname = "aenum";
version = "3.0.0";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "17cd8cfed1ee4b617198c9fabbabd70ebd8f01e54ac29cd6c3a92df14bd86656";
sha256 = "sha256-h/Dp70+ChXirBq8w5NeUQEO/Ts0/S3vRy+N+IXPN6Uo=";
};
# For Python 3, locale has to be set to en_US.UTF-8 for
# tests to pass
checkInputs = if isPy3k then [ glibcLocales ] else [];
checkInputs = [
pyparsing
] ;
# py2 likes to reorder tests
doCheck = isPy3k;
checkPhase = ''
runHook preCheck
${if isPy3k then "export LC_ALL=en_US.UTF-8" else ""}
PYTHONPATH=`pwd` ${python.interpreter} aenum/test.py
runHook postCheck
runHook preCheck
${python.interpreter} aenum/test.py
runHook postCheck
'';
pythonImportsCheck = [ "aenum" ];
meta = with lib; {
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
maintainers = with maintainers; [ vrthra ];

View File

@@ -1,30 +1,38 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, python, pycares, typing ? null
{ lib
, buildPythonPackage
, fetchFromGitHub
, pycares
, pythonOlder
, typing
}:
buildPythonPackage rec {
pname = "aiodns";
version = "2.0.0";
disabled = pythonOlder "3.5";
version = "3.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
src = fetchFromGitHub {
owner = "saghul";
repo = pname;
rev = "aiodns-${version}";
sha256 = "1i91a43gsq222r8212jn4m6bxc3fl04z1mf2h7s39nqywxkggvlp";
};
propagatedBuildInputs = [ pycares ]
++ lib.optional (pythonOlder "3.7") typing;
propagatedBuildInputs = [
pycares
] ++ lib.optional (pythonOlder "3.7") [
typing
];
checkPhase = ''
${python.interpreter} tests.py
'';
# 'Could not contact DNS servers'
# Could not contact DNS servers
doCheck = false;
pythonImportsCheck = [ "aiodns" ];
meta = with lib; {
description = "Simple DNS resolver for asyncio";
homepage = "https://github.com/saghul/aiodns";
license = licenses.mit;
description = "Simple DNS resolver for asyncio";
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -3,7 +3,7 @@
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-sugar
@@ -12,19 +12,23 @@
buildPythonPackage rec {
pname = "aioswitcher";
version = "1.2.2";
version = "1.2.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "TomerFi";
repo = pname;
rev = version;
sha256 = "0wvca1jbyj4bwrpkpklbxnkvdp9zs7mrvg5b9vkx2hpyr81vyxam";
sha256 = "sha256-Qp5iVk71JxhPVrytWuXkzpqPNPmMQubO0t9sgeQfO8c=";
};
nativeBuildInputs = [ poetry ];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ aiohttp ];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
asynctest

View File

@@ -1,28 +1,51 @@
{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pyftdi, pyusb
, pyopenssl, nose, isPy3k, pythonOlder, mock }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pyftdi
, pyopenssl
, pyserial
, pytestCheckHook
, pythonOlder
, pyusb
}:
buildPythonPackage rec {
pname = "alarmdecoder";
version = "1.13.10";
version = "1.13.11";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "nutechsoftware";
repo = "alarmdecoder";
rev = version;
sha256 = "05581j78181p6mwbfpbkp5irnrzsvps1lslgqrh7xbdcmz5b2nxd";
sha256 = "sha256-q2s+wngDKtWm5mxGHNAc63Ed6tiQD9gLHVoQZNWFB0w=";
};
propagatedBuildInputs = [ pyserial pyftdi pyusb pyopenssl ];
propagatedBuildInputs = [
pyftdi
pyopenssl
pyserial
pyusb
];
checkInputs = [
mock
pytestCheckHook
];
disabledTests = [
# Socket issue, https://github.com/nutechsoftware/alarmdecoder/issues/45
"test_ssl"
"test_ssl_exception"
];
doCheck = !isPy3k;
checkInputs = [ nose mock ];
pythonImportsCheck = [ "alarmdecoder" ];
meta = with lib; {
description = "Python interface for the Alarm Decoder (AD2USB, AD2SERIAL and AD2PI) devices";
homepage = "https://github.com/nutechsoftware/alarmdecoder";
description =
"Python interface for the Alarm Decoder (AD2) family of alarm devices. (AD2USB, AD2SERIAL and AD2PI)";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,53 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, lxml
, pytest-httpbin
, pytest-mock
, pytestCheckHook
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "mechanicalsoup";
version = "1.1.0";
src = fetchFromGitHub {
owner = "MechanicalSoup";
repo = "MechanicalSoup";
rev = "v${version}";
sha256 = "1mly0ivai3rx64frk7a7ra6abhdxm9x3l6s6x7sgrl9qx1z8zsp3";
};
propagatedBuildInputs = [
beautifulsoup4
lxml
requests
];
checkInputs = [
pytest-httpbin
pytest-mock
pytestCheckHook
requests-mock
];
postPatch = ''
# Is in setup_requires but not used in setup.py
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
substituteInPlace setup.cfg \
--replace " --cov --cov-config .coveragerc --flake8" ""
'';
pythonImportsCheck = [ "mechanicalsoup" ];
meta = with lib; {
description = "Python library for automating interaction with websites";
homepage = "https://github.com/hickford/MechanicalSoup";
license = licenses.mit;
maintainers = with maintainers; [ jgillich fab ];
};
}

View File

@@ -1,35 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, c-ares
, cffi
, fetchPypi
, idna
}:
buildPythonPackage rec {
pname = "pycares";
version = "3.1.1";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "18dfd4fd300f570d6c4536c1d987b7b7673b2a9d14346592c5d6ed716df0d104";
sha256 = "sha256-0BVPxXU7CIdY++ybwTfhsku4T8DGoJclyLrCWjQjEc0=";
};
buildInputs = [ c-ares ];
buildInputs = [
c-ares
];
propagatedBuildInputs = [ cffi ];
propagatedBuildInputs = [
cffi
idna
];
checkPhase = ''
${python.interpreter} tests/tests.py
'';
# requires network access
# Requires network access
doCheck = false;
meta = with lib; {
homepage = "https://github.com/saghul/pycares";
description = "Interface for c-ares";
license = licenses.mit;
};
pythonImportsCheck = [ "pycares" ];
meta = with lib; {
description = "Python interface for c-ares";
homepage = "https://github.com/saghul/pycares";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "pyiqvia";
version = "0.3.3";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-XYWoHKa/yq7MtGVM6eVgLtR2E3VmqsjX3TNcQcd7dEQ=";
sha256 = "sha256-6BbJgRpn2hivm4N3Zpll9NACMSNlIhxj8CF2iVduIro=";
};
nativeBuildInputs = [ poetry-core ];

View File

@@ -2,20 +2,19 @@
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymata-express";
version = "1.19";
version = "1.20";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MrYsLab";
repo = pname;
rev = "v${version}";
sha256 = "0gfjmqcxwsnfjgll6ql5xd1n3xp4klf4fcaajaivh053i02p0a79";
sha256 = "sha256-spYmd+Cb7Ej5FmniuJYAVVmq0mhOz5fu4+2UUXctRWs=";
};
propagatedBuildInputs = [ pyserial ];

View File

@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "xknx";
version = "0.18.2";
version = "0.18.3";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "XKNX";
repo = pname;
rev = version;
sha256 = "sha256-7jfZtncjcYaAS/7N06FWXh4qSTH6y+VdFx3kKyQxIbM=";
sha256 = "sha256-IXzmVAxxFOfU8ptixZLeyM64Fm1xSIlEDbR09f77JKM=";
};
propagatedBuildInputs = [