evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / skybellpy / default.nix
blobc05b3b0b96ef7a8dd4571eedd5e1cd54dd8333a9
2   lib,
3   buildPythonPackage,
4   colorlog,
5   fetchFromGitHub,
6   pytest-sugar,
7   pytest-timeout,
8   pytestCheckHook,
9   pythonAtLeast,
10   pythonOlder,
11   requests,
12   requests-mock,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "skybellpy";
18   version = "0.6.3";
19   pyproject = true;
21   # Still uses distrutils, https://github.com/MisterWil/skybellpy/issues/22
22   disabled = pythonOlder "3.6" || pythonAtLeast "3.12";
24   src = fetchFromGitHub {
25     owner = "MisterWil";
26     repo = "skybellpy";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-/+9KYxXYTN0T6PoccAA/pwdwWqOzCSZdNxj6xi6oG74=";
29   };
31   build-system = [ setuptools ];
33   dependencies = [
34     colorlog
35     requests
36   ];
38   nativeCheckInputs = [
39     pytest-sugar
40     pytest-timeout
41     pytestCheckHook
42     requests-mock
43   ];
45   pythonImportsCheck = [ "skybellpy" ];
47   meta = with lib; {
48     description = "Python wrapper for the Skybell alarm API";
49     homepage = "https://github.com/MisterWil/skybellpy";
50     changelog = "https://github.com/MisterWil/skybellpy/releases/tag/v${version}";
51     license = licenses.mit;
52     maintainers = with maintainers; [ fab ];
53     mainProgram = "skybellpy";
54   };