Merge pull request #148771 from fabaff/bump-meross-iot
python3Packages.meross-iot: init at 0.4.3.0
This commit is contained in:
commit
98dd4745c9
4 changed files with 164 additions and 0 deletions
46
pkgs/development/python-modules/meross-iot/default.nix
Normal file
46
pkgs/development/python-modules/meross-iot/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
63
pkgs/development/python-modules/proxy-py/default.nix
Normal file
63
pkgs/development/python-modules/proxy-py/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue