depot/third_party/nixpkgs/pkgs/development/python-modules/aiolivisi/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

49 lines
1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, pydantic
, pytestCheckHook
, pythonOlder
, websockets
}:
buildPythonPackage rec {
pname = "aiolivisi";
version = "0.0.14";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-n7EQCOItr6MZRnTCfkJrq39bDbw09XyIRzSuZR2TsNg=";
};
postPatch = ''
# https://github.com/StefanIacobLivisi/aiolivisi/pull/3
substituteInPlace setup.py \
--replace 'REQUIREMENTS = list(val.strip() for val in open("requirements.txt"))' "" \
--replace "REQUIREMENTS," "[],"
'';
propagatedBuildInputs = [
aiohttp
pydantic
websockets
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"aiolivisi"
];
meta = with lib; {
description = "Module to communicate with LIVISI Smart Home Controller";
homepage = "https://github.com/StefanIacobLivisi/aiolivisi";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}