1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lib,
6 pydantic,
7 pytestCheckHook,
8 python-dateutil,
9 setuptools,
10 urllib3,
11}:
12
13buildPythonPackage rec {
14 pname = "sensorpush-api";
15 version = "2.1.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "sstallion";
20 repo = "sensorpush-api";
21 tag = "v${version}";
22 hash = "sha256-0cB0F1Clf3rpAOSTa/YcEMchBIQv+0cQwsGE1qlroKA=";
23 };
24
25 build-system = [ setuptools ];
26
27 pythonRelaxDeps = [
28 "urllib3"
29 ];
30
31 dependencies = [
32 aiohttp
33 pydantic
34 python-dateutil
35 urllib3
36 ];
37
38 pythonImportsCheck = [ "sensorpush_api" ];
39
40 nativeCheckInputs = [
41 pytestCheckHook
42 ];
43
44 meta = {
45 changelog = "https://github.com/sstallion/sensorpush-api/blob/${src.tag}/CHANGELOG.md";
46 description = "SensorPush Public API for Python";
47 homepage = "https://github.com/sstallion/sensorpush-api";
48 license = lib.licenses.bsd2;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}