Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-07 18:24:29 +00:00
committed by GitHub
70 changed files with 870 additions and 592 deletions
@@ -1,15 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, aiohttp }:
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
}:
buildPythonPackage rec {
pname = "aiohue";
version = "2.2.0";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "35696d04d6eb0328b7031ea3c0a3cfe5d83dfcf62f920522e4767d165c6bc529";
sha256 = "1xinllv2cvxl9fxi15nayzw9lfzijb3m7i49gkkr46qr8xvsavyk";
};
propagatedBuildInputs = [ aiohttp ];
propagatedBuildInputs = [
aiohttp
];
pythonImportsCheck = [
"aiohue"
"aiohue.discovery"
];
# has no tests
doCheck = false;
meta = with lib; {
description = "asyncio package to talk to Philips Hue";
@@ -0,0 +1,66 @@
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "aiopvpc";
version = "2.0.2";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "azogue";
repo = pname;
rev = "v${version}";
sha256 = "1ajs4kbdlfn4h7f3d6lwkp4yl1rl7zyvj997nhsz93jjwxbajkpv";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pytz
async-timeout
];
checkInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
patches = [
# Switch to poetry-core, https://github.com/azogue/aiopvpc/pull/10
(fetchpatch {
name = "use-peotry-core.patch";
url = "https://github.com/azogue/aiopvpc/commit/4bc2740ffd485a60acf579b4f3eb5ee6a353245c.patch";
sha256 = "0ynj7pqq3akdvdrvqcwnnslay3mn1q92qhk8fg95ppflzscixli6";
})
];
postPatch = ''
substituteInPlace pytest.ini --replace \
" --cov --cov-report term --cov-report html" ""
'';
pythonImportsCheck = [ "aiopvpc" ];
meta = with lib; {
description = "Python module to download Spanish electricity hourly prices (PVPC)";
homepage = "https://github.com/azogue/aiopvpc";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, typing-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "asyncstdlib";
version = "3.9.1";
disabled = pythonOlder "3.7";
format = "flit";
src = fetchFromGitHub {
owner = "maxfischer2781";
repo = pname;
rev = "v${version}";
sha256 = "13ranr7zi61w52vfrxwkf32bbhk88j0r5c5z2x2h5vw268001lk2";
};
propagatedBuildInputs = [
typing-extensions
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "asyncstdlib" ];
meta = with lib; {
description = "Python library that extends the Python asyncio standard library";
homepage = "https://asyncstdlib.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
@@ -7,6 +7,7 @@
, click
, enum-compat
, hypothesis
, inquirer
, jmespath
, mock
, mypy-extensions
@@ -35,6 +36,7 @@ buildPythonPackage rec {
botocore
click
enum-compat
inquirer
jmespath
mypy-extensions
pip
@@ -1,33 +1,51 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces
, pytestCheckHook, testtools, requests-mock }:
{ lib
, asyncstdlib
, attrs
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, httpx
, netifaces
, pytest-asyncio
, pytestCheckHook
, pytest-httpx
, pytest-timeout
, pythonOlder
}:
buildPythonPackage rec {
pname = "denonavr";
version = "0.9.10";
disabled = isPy27;
version = "0.10.6";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "scarface-4711";
repo = "denonavr";
repo = pname;
rev = version;
sha256 = "sha256-3ap8F3ayBTpaR98md+gT0+hkIWlFBNxStTGWT5AL//A=";
sha256 = "sha256-jcbjExcyZSE+qVPuYiMmuneugDMBoYz4apY/lz4JnMI=";
};
propagatedBuildInputs = [
requests
asyncstdlib
attrs
defusedxml
httpx
netifaces
];
checkInputs = [
pytest-asyncio
pytestCheckHook
testtools
requests-mock
pytest-httpx
pytest-timeout
];
pythonImportsCheck = [ "denonavr" ];
meta = with lib; {
description = "Automation Library for Denon AVR receivers";
homepage = "https://github.com/scarface-4711/denonavr";
description = "Automation Library for Denon AVR receivers.";
license = licenses.mit;
license = with licenses; [ mit ];
maintainers = with maintainers; [ colemickens ];
};
}
@@ -1,23 +1,24 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, netifaces, pytest }:
{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }:
buildPythonPackage rec {
pname = "netdisco";
version = "2.8.2";
version = "2.8.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "dcaabf83b204282aacfb213b18799eb7af2d5a6defe529487bbd0548036392fe";
sha256 = "sha256-4WS9PiErB6U7QuejTvbrOmnHetbE5S4zaUyhLCbyihM=";
};
propagatedBuildInputs = [ requests zeroconf netifaces ];
propagatedBuildInputs = [ requests zeroconf ];
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
py.test
'';
pythonImportsCheck = [
"netdisco"
"netdisco.discovery"
];
meta = with lib; {
description = "Python library to scan local network for services and devices";
@@ -1,4 +1,12 @@
{ lib, buildPythonPackage, fetchPypi, pytest, psycopg2, click, sqlparse }:
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, psycopg2
, click
, configobj
, sqlparse
}:
buildPythonPackage rec {
pname = "pgspecial";
@@ -9,13 +17,16 @@ buildPythonPackage rec {
sha256 = "b68feb0005f57861573d3fbb82c5c777950decfbb2d1624af57aec825db02c02";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ click sqlparse psycopg2 ];
propagatedBuildInputs = [
click
sqlparse
psycopg2
];
checkPhase = ''
find tests -name \*.pyc -delete
py.test tests
'';
checkInputs = [
configobj
pytestCheckHook
];
meta = with lib; {
description = "Meta-commands handler for Postgres Database";
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "pyclimacell";
version = "0.18.0";
version = "0.18.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "raman325";
repo = pname;
rev = "v${version}";
sha256 = "0pxlh3lwd1az6v7vbaz9kv6ngqxf34iddp7vr0d0p8apbvinwrha";
sha256 = "sha256-jWHjnebg4Aar48gid7bB7XYXOQtSqbmVmASsZd0YoPc=";
};
propagatedBuildInputs = [
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, numpy, pytest }:
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, matplotlib, numpy, pytest, seaborn }:
buildPythonPackage rec {
pname = "pycm";
@@ -20,7 +20,7 @@ buildPythonPackage rec {
'';
checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy ];
propagatedBuildInputs = [ matplotlib numpy seaborn ];
checkPhase = ''
pytest Test/
@@ -31,6 +31,7 @@ buildPythonPackage rec {
doCheck = false;
meta = with lib; {
broken = true; # unmaintained and incompatible with pytest>=6.0
homepage = "https://github.com/kensho-technologies/pytest-annotate";
description = "Generate PyAnnotate annotations from your pytest tests";
license = licenses.asl20;
@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, redis
, pytest
, pytestCheckHook
, process-tests
, pkgs
, withDjango ? false, django_redis
@@ -17,15 +17,20 @@ buildPythonPackage rec {
sha256 = "4265a476e39d476a8acf5c2766485c44c75f3a1bd6cf73bb195f3079153b8374";
};
checkInputs = [ pytest process-tests pkgs.redis ];
propagatedBuildInputs = [
redis
] ++ lib.optional withDjango django_redis;
checkPhase = ''
pytest tests/
'';
propagatedBuildInputs = [ redis ]
++ lib.optional withDjango django_redis;
checkInputs = [
pytestCheckHook
process-tests
pkgs.redis
];
disabledTests = [
# https://github.com/ionelmc/python-redis-lock/issues/86
"test_no_overlap2"
];
meta = with lib; {
homepage = "https://github.com/ionelmc/python-redis-lock";
@@ -24,7 +24,6 @@ buildPythonPackage rec {
pythonImportsCheck = [
"snap7"
"snap7.six"
"snap7.util"
];
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "zeroconf";
version = "0.29.0";
version = "0.30.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-eu+7ZYtFKx/X5REkNk+TjG9eQtbqiT+iVXvqjAbFQK8=";
sha256 = "sha256-elpjZq4FpI2wTf1ciILumKE/LQ4fxtCaXxvQo9HRCcc=";
};
propagatedBuildInputs = [ ifaddr ];
@@ -25,6 +25,7 @@ buildPythonPackage rec {
disabledTests = [
# disable tests that expect some sort of networking in the build container
"test_close_multiple_times"
"test_launch_and_close"
"test_launch_and_close_v4_v6"
"test_launch_and_close_v6_only"