Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyvera / default.nix
blobb43840b0790a10f6d22095579e4296601ec159c6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytest-cov
6 , pytest-asyncio
7 , pytest-timeout
8 , responses
9 , pytestCheckHook
10 , requests
13 buildPythonPackage rec {
14   pname = "pyvera";
15   version = "0.3.15";
16   format = "pyproject";
18   src = fetchFromGitHub {
19     owner = "pavoni";
20     repo = pname;
21     rev = version;
22     hash = "sha256-1+xIqOogRUt+blX7AZSKIiU8lpR4AzKIIW/smCSft94=";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [ requests ];
29   nativeCheckInputs = [
30     pytest-asyncio
31     pytest-timeout
32     pytest-cov
33     pytestCheckHook
34     responses
35   ];
37   pythonImportsCheck = [ "pyvera" ];
39   meta = with lib; {
40     description = "Python library to control devices via the Vera hub";
41     homepage = "https://github.com/pavoni/pyvera";
42     license = with licenses; [ gpl2Only ];
43     maintainers = with maintainers; [ fab ];
44   };