1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 hatchling, 7 aiohttp, 8 bcrypt, 9 mashumaro, 10 aioresponses, 11 pytest-aio, 12 pytestCheckHook, 13 syrupy, 14}: 15 16buildPythonPackage rec { 17 pname = "solarlog-cli"; 18 version = "0.6.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "dontinelli"; 25 repo = "solarlog_cli"; 26 tag = "v${version}"; 27 hash = "sha256-oxeZkf5RpTgAd/PO8itElvQyBOQg1k4W//4M8Q0xbJg="; 28 }; 29 30 build-system = [ hatchling ]; 31 32 dependencies = [ 33 aiohttp 34 bcrypt 35 mashumaro 36 ]; 37 38 pythonImportsCheck = [ "solarlog_cli" ]; 39 40 nativeCheckInputs = [ 41 aioresponses 42 pytest-aio 43 pytestCheckHook 44 syrupy 45 ]; 46 47 meta = { 48 changelog = "https://github.com/dontinelli/solarlog_cli/releases/tag/v${version}"; 49 description = "Python library to access the Solar-Log JSON interface"; 50 homepage = "https://github.com/dontinelli/solarlog_cli"; 51 license = lib.licenses.gpl3Plus; 52 maintainers = with lib.maintainers; [ dotlambda ]; 53 }; 54}