depot/third_party/nixpkgs/pkgs/development/python-modules/pyvera/default.nix
Default email d9e13ed064 Project import generated by Copybara.
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
2021-09-22 23:38:15 +08:00

45 lines
871 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-cov
, pytest-asyncio
, pytest-timeout
, responses
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "pyvera";
version = "0.3.14";
format = "pyproject";
src = fetchFromGitHub {
owner = "pavoni";
repo = pname;
rev = version;
sha256 = "sha256-CuXsyHlRw5zqDrQfMT4BzHsmox8MLRKxFKwR5M0XoEM=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ requests ];
checkInputs = [
pytest-asyncio
pytest-timeout
pytest-cov
pytestCheckHook
responses
];
pythonImportsCheck = [ "pyvera" ];
meta = with lib; {
description = "Python library to control devices via the Vera hub";
homepage = "https://github.com/pavoni/pyvera";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
};
}