1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytest-mock, 6 pytestCheckHook, 7 python-dateutil, 8 pythonOlder, 9 setuptools, 10 urllib3, 11}: 12 13buildPythonPackage rec { 14 pname = "amberelectric"; 15 version = "1.1.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-HujjqJ3nkPIj8P0qAiQnQzLhji5l8qOAO2Gh53OJ7UY="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 urllib3 29 python-dateutil 30 ]; 31 32 nativeCheckInputs = [ 33 pytest-mock 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "amberelectric" ]; 38 39 meta = with lib; { 40 description = "Python Amber Electric API interface"; 41 homepage = "https://github.com/madpilot/amberelectric.py"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}