1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00

Merge pull request #148771 from fabaff/bump-meross-iot

python3Packages.meross-iot: init at 0.4.3.0
This commit is contained in:
Fabian Affolter 2021-12-20 08:07:03 +01:00 committed by GitHub
commit 98dd4745c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pytestCheckHook
, pythonOlder
, requests
, retrying
}:
buildPythonPackage rec {
pname = "meross-iot";
version = "0.4.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "MerossIot";
rev = version;
sha256 = "sha256-PZ1+Bjw7k6EFZEuPhbkGrdQzdLGiM4U0ecAAN8SxWU4=";
};
propagatedBuildInputs = [
aiohttp
paho-mqtt
requests
retrying
];
# Test require network access
doCheck = false;
pythonImportsCheck = [
"meross_iot"
];
meta = with lib; {
description = "Python library to interact with Meross devices";
homepage = "https://github.com/albertogeniola/MerossIot";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,63 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, openssl
, paramiko
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, typing-extensions
}:
buildPythonPackage rec {
pname = "proxy-py";
version = "2.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "abhinavsingh";
repo = "proxy.py";
rev = "v${version}";
sha256 = "sha256-qqwb3t8/xicDGfO6l843qRwh0yUfthnOIhgNeKIbEO4=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
paramiko
typing-extensions
];
checkInputs = [
openssl
pytest-asyncio
pytest-mock
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d);
'';
postPatch = ''
substituteInPlace requirements.txt \
--replace "typing-extensions==3.7.4.3" "typing-extensions"
'';
pythonImportsCheck = [
"proxy"
];
meta = with lib; {
description = "Python proxy framework";
homepage = "https://github.com/abhinavsingh/proxy.py";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytest-metadata
, pytest-xdist
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-json-report";
version = "1.4.1";
src = fetchFromGitHub {
owner = "numirias";
repo = pname;
rev = "v${version}";
sha256 = "sha256-OS9ASUp9iJ12Ovr931RQU/DHEAXqbgcRMCBP4h+GAhk=";
};
buildInputs = [
pytest
];
propagatedBuildInputs = [
pytest-metadata
];
checkInputs = [
pytest-xdist
pytestCheckHook
];
disabledTests = [
# pytest-flaky is not available at the moment
"test_bug_31"
];
pythonImportsCheck = [
"pytest_jsonreport"
];
meta = with lib; {
description = "Pytest plugin to report test results as JSON";
homepage = "https://github.com/numirias/pytest-json-report";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4847,6 +4847,8 @@ in {
merkletools = callPackage ../development/python-modules/merkletools { };
meross-iot = callPackage ../development/python-modules/meross-iot { };
mesa = callPackage ../development/python-modules/mesa { };
meshio = callPackage ../development/python-modules/meshio { };
@ -6203,6 +6205,8 @@ in {
proxmoxer = callPackage ../development/python-modules/proxmoxer { };
proxy-py = callPackage ../development/python-modules/proxy-py { };
psautohint = callPackage ../development/python-modules/psautohint { };
psd-tools = callPackage ../development/python-modules/psd-tools { };
@ -7539,6 +7543,8 @@ in {
pytest-isort = callPackage ../development/python-modules/pytest-isort { };
pytest-json-report = callPackage ../development/python-modules/pytest-json-report { };
pytest-lazy-fixture = callPackage ../development/python-modules/pytest-lazy-fixture { };
pytest-localserver = callPackage ../development/python-modules/pytest-localserver { };