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