Merge pull request #118766 from fabaff/yalexs
This commit is contained in:
commit
7a8fe6244b
@ -13,16 +13,17 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pubnub";
|
pname = "pubnub";
|
||||||
version = "4.8.0";
|
version = "5.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = "python";
|
repo = "python";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "16wjal95042kh5fxhvji0rwmw892pacqcnyms520mw15wcwilqir";
|
sha256 = "sha256-ir8f8A6XuN1ZQIYQbArChLzTlYu4ZKpkoOXQtSLOvKg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
cbor2
|
cbor2
|
||||||
pycryptodomex
|
pycryptodomex
|
||||||
requests
|
requests
|
||||||
@ -30,19 +31,15 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
aiohttp
|
|
||||||
pycryptodomex
|
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-vcr
|
pytest-vcr
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some tests don't pass with recent releases of tornado/twisted
|
# Some tests don't pass with recent releases of twisted
|
||||||
pytestFlagsArray = [
|
disabledTestPaths = [
|
||||||
"--ignore tests/integrational"
|
"tests/integrational"
|
||||||
"--ignore tests/manual/asyncio"
|
"tests/manual/asyncio"
|
||||||
"--ignore tests/manual/tornado/test_reconnections.py"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pubnub" ];
|
pythonImportsCheck = [ "pubnub" ];
|
||||||
|
58
pkgs/development/python-modules/yalexs/default.nix
Normal file
58
pkgs/development/python-modules/yalexs/default.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{ lib
|
||||||
|
, aiofiles
|
||||||
|
, aiohttp
|
||||||
|
, aioresponses
|
||||||
|
, aiounittest
|
||||||
|
, asynctest
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pubnub
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "yalexs";
|
||||||
|
version = "1.1.10";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bdraco";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1qmxiafqmh51i3l30pajaqj5h0kziq4d37fn6hl58429bb85dpp9";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiofiles
|
||||||
|
aiohttp
|
||||||
|
pubnub
|
||||||
|
python-dateutil
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
aioresponses
|
||||||
|
aiounittest
|
||||||
|
asynctest
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Not used requirement
|
||||||
|
substituteInPlace setup.py --replace '"vol",' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "yalexs" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell";
|
||||||
|
homepage = "https://github.com/bdraco/yalexs";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -9031,6 +9031,8 @@ in {
|
|||||||
|
|
||||||
yalesmartalarmclient = callPackage ../development/python-modules/yalesmartalarmclient { };
|
yalesmartalarmclient = callPackage ../development/python-modules/yalesmartalarmclient { };
|
||||||
|
|
||||||
|
yalexs = callPackage ../development/python-modules/yalexs { };
|
||||||
|
|
||||||
yamale = callPackage ../development/python-modules/yamale { };
|
yamale = callPackage ../development/python-modules/yamale { };
|
||||||
|
|
||||||
yamllint = callPackage ../development/python-modules/yamllint { };
|
yamllint = callPackage ../development/python-modules/yamllint { };
|
||||||
|
Loading…
Reference in New Issue
Block a user