depot/third_party/nixpkgs/pkgs/development/python-modules/pyvera/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

45 lines
877 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-cov
, pytest-asyncio
, pytest-timeout
, responses
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "pyvera";
version = "0.3.15";
format = "pyproject";
src = fetchFromGitHub {
owner = "pavoni";
repo = pname;
rev = version;
sha256 = "sha256-1+xIqOogRUt+blX7AZSKIiU8lpR4AzKIIW/smCSft94=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
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 ];
};
}