biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / adafruit-io / default.nix
blobe0f1122a464e1ea0ede37eff27547be30a307701
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   paho-mqtt,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   setuptools-scm,
12 buildPythonPackage rec {
13   pname = "adafruit-io";
14   version = "2.8.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "adafruit";
21     repo = "Adafruit_IO_Python";
22     rev = "refs/tags/${version}";
23     hash = "sha256-OwTHMyc2ePSdYVuY1h3PY+uDBl6/7fTMXiZC3sZm8fU=";
24   };
26   nativeBuildInputs = [ setuptools-scm ];
28   propagatedBuildInputs = [
29     paho-mqtt
30     requests
31   ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "Adafruit_IO" ];
37   disabledTestPaths = [
38     # Tests requires valid credentials
39     "tests/test_client.py"
40     "tests/test_errors.py"
41     "tests/test_mqtt_client.py"
42   ];
44   meta = with lib; {
45     description = "Module for interacting with Adafruit IO";
46     homepage = "https://github.com/adafruit/Adafruit_IO_Python";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49   };