Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-02-14 00:37:56 +00:00
committed by GitHub
15 changed files with 378 additions and 21 deletions

View File

@@ -0,0 +1,57 @@
{ lib
, aiohttp
, aresponses
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, python-engineio
, python-socketio
, pythonOlder
, websockets
}:
buildPythonPackage rec {
pname = "aioambient";
version = "1.2.3";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "1jg93rjn1gxc66qmipw4z1c09l8hgfsydacjgkfjq7vg547lragp";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
python-engineio
python-socketio
websockets
];
checkInputs = [
aresponses
asynctest
pytest-asyncio
pytest-cov
pytestCheckHook
];
# Ignore the examples directory as the files are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "aioambient" ];
meta = with lib; {
description = "Python library for the Ambient Weather API";
homepage = "https://github.com/bachya/aioambient";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "fontParts";
version = "0.9.7";
version = "0.9.9";
src = fetchPypi {
inherit pname version;
sha256 = "183y1y11bqd4ky4anyv40qbvsm6i90gnydqzrjg7syspjsqvfqgy";
sha256 = "1iz04kpxgc5fx2rl4585hr1vp4cdajqbddlskkhlmzkn9hvz528i";
extension = "zip";
};
@@ -28,7 +28,9 @@ buildPythonPackage rec {
];
checkPhase = ''
runHook preCheck
${python.interpreter} Lib/fontParts/fontshell/test.py
runHook postCheck
'';
checkInputs = [ pytest ];

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "google-cloud-bigtable";
version = "1.6.1";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "ace4ff7c6e00fb7d86963503615db85336b6484339f5774bd8c589df224772a8";
sha256 = "90bd53a19c33c34101b8567c82a6dc0386af4118d70e1ad69b49375358a21aa6";
};
checkInputs = [ pytest mock ];

View File

@@ -2,8 +2,10 @@
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, setuptools_scm
, setuptools
, pytestCheckHook
, freezegun
}:
buildPythonPackage rec {
@@ -17,16 +19,14 @@ buildPythonPackage rec {
};
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ mock ];
doCheck = false;
propagatedBuildInputs = [ setuptools ];
checkInputs = [ pytestCheckHook freezegun ];
meta = with lib; {
description = "Python humanize utilities";
homepage = "https://github.com/jmoiron/humanize";
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
maintainers = with maintainers; [ rmcgibbo ];
};
}

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "josepy";
version = "1.6.0";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "0aab1c3ceffe045e7fd5bcfe7685e27e9d2758518d9ba7116b5de34087e70bf5";
sha256 = "d265414fa16d7a8b7a1d1833b4ebb19a22bd0deae5d44413cf9040fd8491d85a";
};
postPatch = ''

View File

@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, paramiko
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "proxmoxer";
version = "1.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "09fz8zbxjaly9zqksvq6cqp66plbsyjsmndy4g25ryys45siz1ny";
};
propagatedBuildInputs = [
paramiko
requests
];
checkInputs = [
mock
nose
pytestCheckHook
];
# Tests require openssh_wrapper which is outdated and not available
pytestFlagsArray = [ "tests/paramiko_tests.py" ];
pythonImportsCheck = [ "proxmoxer" ];
meta = with lib; {
description = "Python wrapper for Proxmox API v2";
homepage = "https://github.com/proxmoxer/proxmoxer";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,45 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromBitbucket
, freezegun
, netifaces
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, urllib3
}:
buildPythonPackage rec {
pname = "pydaikin";
version = "2.4.1";
disabled = pythonOlder "3.6";
src = fetchFromBitbucket {
owner = "mustang51";
repo = pname;
rev = "v${version}";
sha256 = "1624adp4lqd1n9flnf0wqrcibml2nd19ga3fmxzjg4x5z6767bs3";
};
propagatedBuildInputs = [
aiohttp
netifaces
urllib3
];
checkInputs = [
freezegun
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "pydaikin" ];
meta = with lib; {
description = "Python Daikin HVAC appliances interface";
homepage = "https://bitbucket.org/mustang51/pydaikin";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "pymsteams";
version = "0.1.14";
src = fetchFromGitHub {
owner = "rveachkc";
repo = pname;
rev = version;
sha256 = "19gnsjzf3kwcwp2rwa30zpqjqgxb9plgcsx7fqbmxnrxgw99fyqx";
};
propagatedBuildInputs = [ requests ];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "pymsteams" ];
meta = with lib; {
description = "Python module to interact with Microsoft Teams";
homepage = "https://github.com/rveachkc/pymsteams";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,32 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyrisco";
version = "0.3.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "OnFreund";
repo = pname;
rev = "v${version}";
sha256 = "1im29h4rxnp98aqzgzjj5i8jv2h5zw9c5yx8xxzl4cmr3yila9zw";
};
propagatedBuildInputs = [ aiohttp ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pyrisco" ];
meta = with lib; {
description = "Python interface to Risco alarm systems through Risco Cloud";
homepage = "https://github.com/OnFreund/pyrisco";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
, lxml
}:
buildPythonPackage rec {
pname = "pytrafikverket";
version = "0.1.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "0hrjsw53ixgmhsiszdrzzh0wma705nrhq8npzacsyaf43r29zvqy";
};
propagatedBuildInputs = [
aiohttp
async-timeout
lxml
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pytrafikverket" ];
meta = with lib; {
description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
homepage = "https://github.com/endor-force/pytrafikverket";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "radiotherm";
version = "2.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mhrivnak";
repo = pname;
rev = version;
sha256 = "0p37pc7l2malmjfkdlh4q2cfa6dqpsk1rah2j2xil0pj57ai6bks";
};
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "radiotherm" ];
meta = with lib; {
description = "Python library for Wifi Radiothermostat";
homepage = "https://github.com/mhrivnak/radiotherm";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,61 @@
{ lib
, aiodns
, aiohttp
, async-timeout
, brotlipy
, buildPythonPackage
, cchardet
, click
, colorama
, fetchFromGitHub
, halo
, poetry-core
, pythonOlder
, requests
, rich
}:
buildPythonPackage rec {
pname = "surepy";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "benleb";
repo = pname;
rev = "v${version}";
sha256 = "1adsnjya142bxdhfxqsi2qa35ylvdcibigs1wafjlxazlxs3mg0j";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiodns
aiohttp
async-timeout
brotlipy
cchardet
click
colorama
halo
requests
rich
];
postPatch = ''
# halo is out-dated, https://github.com/benleb/surepy/pull/7
substituteInPlace pyproject.toml --replace "^0.0.30" "^0.0.31"
'';
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "surepy" ];
meta = with lib; {
description = "Python library to interact with the Sure Petcare API";
homepage = "https://github.com/benleb/surepy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}