37 lines
852 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
}:
buildPythonPackage rec {
pname = "teslemetry-stream";
version = "0.6.6";
pyproject = true;
src = fetchFromGitHub {
owner = "Teslemetry";
repo = "python-teslemetry-stream";
tag = "v${version}";
hash = "sha256-6LecUx+5CUJybIHwA4OY57gu2odoE2xq02vp13vDYLk=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
doCheck = false; # no tests
pythonImportsCheck = [ "teslemetry_stream" ];
meta = {
changelog = "https://github.com/Teslemetry/python-teslemetry-stream/releases/tag/${src.tag}";
description = "Python library for the Teslemetry Streaming API";
homepage = "https://github.com/Teslemetry/python-teslemetry-stream";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}