1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7}:
8
9buildPythonPackage rec {
10 pname = "teslemetry-stream";
11 version = "0.4.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Teslemetry";
16 repo = "python-teslemetry-stream";
17 rev = "v${version}";
18 hash = "sha256-Ny68yiM0LS2U7zy6K2R35ZLm+Jo4s+HIFJjuqgL49E0=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ aiohttp ];
24
25 doCheck = false; # no tests
26
27 pythonImportsCheck = [ "teslemetry_stream" ];
28
29 meta = {
30 changelog = "https://github.com/Teslemetry/python-teslemetry-stream/releases/tag/v${version}";
31 description = "Python library for the Teslemetry Streaming API";
32 homepage = "https://github.com/Teslemetry/python-teslemetry-stream";
33 license = lib.licenses.asl20;
34 maintainers = with lib.maintainers; [ hexa ];
35 };
36}