1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "peaqevcore"; 9 version = "7.4.0"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-7b6fF6wVNo4kBJ+s1lxNSl1C2vZjnAmHOtVSmqoiY9Q="; 17 }; 18 19 postPatch = '' 20 substituteInPlace setup.py \ 21 --replace "pytest" "" 22 ''; 23 24 # Tests are not shipped and source is not tagged 25 # https://github.com/elden1337/peaqev-core/issues/4 26 doCheck = false; 27 28 pythonImportsCheck = [ 29 "peaqevcore" 30 ]; 31 32 meta = with lib; { 33 description = "Library for interacting with Peaqev car charging"; 34 homepage = "https://github.com/elden1337/peaqev-core"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}