1{ 2 lib, 3 aenum, 4 buildPythonPackage, 5 fetchFromGitHub, 6 poetry-core, 7 pydantic, 8 pytest-mock, 9 pytestCheckHook, 10 python-dateutil, 11 pythonOlder, 12 urllib3, 13}: 14 15buildPythonPackage rec { 16 pname = "amberelectric"; 17 version = "2.0.12"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "madpilot"; 24 repo = "amberelectric.py"; 25 tag = "v${version}"; 26 hash = "sha256-HTelfgOucyQINz34hT3kGxhJf68pxKbiO3L54nt5New="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 aenum 33 urllib3 34 pydantic 35 python-dateutil 36 ]; 37 38 nativeCheckInputs = [ 39 pytest-mock 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "amberelectric" ]; 44 45 meta = with lib; { 46 description = "Python Amber Electric API interface"; 47 homepage = "https://github.com/madpilot/amberelectric.py"; 48 license = with licenses; [ asl20 ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}