mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
bd163c9308
Diff: https://github.com/bdraco/yalexs/compare/refs/tags/v1.3.3...v1.5.1 Changelog: https://github.com/bdraco/yalexs/releases/tag/v1.5.1
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, aiofiles
|
|
, aiohttp
|
|
, aioresponses
|
|
, aiounittest
|
|
, buildPythonPackage
|
|
, ciso8601
|
|
, fetchFromGitHub
|
|
, pubnub
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-8aOLDjWZOqAsnldxUtUBcuT7pBbZHPnPSmQCF/oqNYw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiohttp
|
|
ciso8601
|
|
pubnub
|
|
pyjwt
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
aiounittest
|
|
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";
|
|
changelog = "https://github.com/bdraco/yalexs/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|