2025-03-04 16:45:32 -08:00
|
|
|
{
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sensorpush-api";
|
2025-03-31 20:37:59 -07:00
|
|
|
version = "2.1.2";
|
2025-03-04 16:45:32 -08:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sstallion";
|
|
|
|
repo = "sensorpush-api";
|
|
|
|
tag = "v${version}";
|
2025-03-31 20:37:59 -07:00
|
|
|
hash = "sha256-0cB0F1Clf3rpAOSTa/YcEMchBIQv+0cQwsGE1qlroKA=";
|
2025-03-04 16:45:32 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"urllib3"
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
aiohttp
|
|
|
|
pydantic
|
|
|
|
python-dateutil
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sensorpush_api" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/sstallion/sensorpush-api/blob/${src.tag}/CHANGELOG.md";
|
|
|
|
description = "SensorPush Public API for Python";
|
|
|
|
homepage = "https://github.com/sstallion/sensorpush-api";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|