Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aenum, 4 buildPythonPackage, 5 fetchPypi, 6 pythonOlder, 7 requests, 8 setuptools, 9 simplejson, 10}: 11 12buildPythonPackage rec { 13 pname = "wallbox"; 14 version = "0.7.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-8taZpC1N5ZsVurh10WosZvg7WDmord+PDfhHpRlfqBE="; 22 }; 23 24 build-system = [ 25 setuptools 26 ]; 27 28 dependencies = [ 29 aenum 30 requests 31 simplejson 32 ]; 33 34 # no tests implemented 35 doCheck = false; 36 37 pythonImportsCheck = [ "wallbox" ]; 38 39 meta = with lib; { 40 description = "Module for interacting with Wallbox EV charger api"; 41 homepage = "https://github.com/cliviu74/wallbox"; 42 changelog = "https://github.com/cliviu74/wallbox/releases/tag/${version}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ dotlambda ]; 45 }; 46}