depot/third_party/nixpkgs/pkgs/development/python-modules/blebox-uniapi/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

48 lines
910 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, semver
, asynctest
, deepmerge
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "blebox-uniapi";
version = "2.0.2";
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
rev = "refs/tags/v${version}";
sha256 = "sha256-0Yiooy7YSUFjqqcyH2fPQ6AWuR0EJxfRRZTw/6JGcMA=";
};
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 ];
};
}