biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / youless-api / default.nix
blobd4be6d3a9b7820be95bf20bb448c5f62680af8aa
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   requests,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "youless-api";
13   version = "2.1.2";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "gjong";
20     repo = "youless-python-bridge";
21     rev = "refs/tags/${version}";
22     hash = "sha256-MvGLIhkBbcGThKeqtlzVZct2o9PBLwcAELmn5pW3R6I=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [ requests ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "youless_api" ];
33   meta = with lib; {
34     description = "Python library for YouLess sensors";
35     homepage = "https://github.com/gjong/youless-python-bridge";
36     changelog = "https://github.com/gjong/youless-python-bridge/releases/tag/${version}";
37     license = with licenses; [ mit ];
38     maintainers = with maintainers; [ fab ];
39   };