depot/third_party/nixpkgs/pkgs/development/python-modules/blebox-uniapi/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

48 lines
910 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, semver
, asynctest
, deepmerge
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blebox-uniapi";
version = "2.1.0";
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
rev = "refs/tags/v${version}";
sha256 = "sha256-mJaUB4kEm+eRh3Kc+SiTCSSmCmBEJBVZ5uah95MJX64=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
propagatedBuildInputs = [
aiohttp
semver
];
checkInputs = [
asynctest
deepmerge
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "blebox_uniapi" ];
meta = with lib; {
description = "Python API for accessing BleBox smart home devices";
homepage = "https://github.com/blebox/blebox_uniapi";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}