My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyvera/default.nix

45 lines
871 B

{ 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 ];
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 ];
};
}