39 lines
803 B
Nix
39 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "peaqevcore";
|
|
version = "3.0.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-yjcO5fRYR4v5334eh9Sen2VKk59zVT1WB/1iXKDd0rA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest" ""
|
|
'';
|
|
|
|
# Tests are not shipped and source is not tagged
|
|
# https://github.com/elden1337/peaqev-core/issues/4
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"peaqevcore"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for interacting with Peaqev car charging";
|
|
homepage = "https://github.com/elden1337/peaqev-core";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|