mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-04 09:56:13 +03:00
python3Packages.adafruit-io: init at 2.6.0
This commit is contained in:
parent
0da44bd46d
commit
3116a1e430
57
pkgs/development/python-modules/adafruit-io/default.nix
Normal file
57
pkgs/development/python-modules/adafruit-io/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, paho-mqtt
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adafruit-io";
|
||||
version = "2.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "adafruit";
|
||||
repo = "Adafruit_IO_Python";
|
||||
rev = version;
|
||||
hash = "sha256-tjm+HvUuLK3IxXwuxPidJaBetj+n0BzKOuLj75bM7a8=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paho-mqtt
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"Adafruit_IO"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests requires valid credentials
|
||||
"tests/test_client.py"
|
||||
"tests/test_errors.py"
|
||||
"tests/test_mqtt_client.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for interacting with Adafruit IO";
|
||||
homepage = "https://github.com/adafruit/Adafruit_IO_Python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -186,6 +186,8 @@ in {
|
||||
|
||||
actdiag = callPackage ../development/python-modules/actdiag { };
|
||||
|
||||
adafruit-io = callPackage ../development/python-modules/adafruit-io { };
|
||||
|
||||
adafruit-platformdetect = callPackage ../development/python-modules/adafruit-platformdetect { };
|
||||
|
||||
adafruit-pureio = callPackage ../development/python-modules/adafruit-pureio { };
|
||||
|
Loading…
Reference in New Issue
Block a user