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