1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "peaqevcore"; 11 version = "19.11.4"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-v4VoRzQIeqKlxjMYveYL/B6p+2HcmpTkLq/8grl0wtY="; 19 }; 20 21 postPatch = '' 22 sed -i "/extras_require/d" setup.py 23 ''; 24 25 build-system = [ setuptools ]; 26 27 # Tests are not shipped and source is not tagged 28 # https://github.com/elden1337/peaqev-core/issues/4 29 doCheck = false; 30 31 pythonImportsCheck = [ "peaqevcore" ]; 32 33 meta = with lib; { 34 description = "Library for interacting with Peaqev car charging"; 35 homepage = "https://github.com/elden1337/peaqev-core"; 36 changelog = "https://github.com/elden1337/peaqev-core/releases/tag/${version}"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}