472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
aiohttp,
|
|
mashumaro,
|
|
aioresponses,
|
|
pytest-aio,
|
|
pytestCheckHook,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "solarlog-cli";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dontinelli";
|
|
repo = "solarlog_cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-67ZEval+cRvjFhQynFVYf5FFDw+zWrAfSC/2d6X+oh4=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
mashumaro
|
|
];
|
|
|
|
pythonImportsCheck = [ "solarlog_cli" ];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-aio
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/dontinelli/solarlog_cli/releases/tag/v${version}";
|
|
description = "Python library to access the Solar-Log JSON interface";
|
|
homepage = "https://github.com/dontinelli/solarlog_cli";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|