nixpkgs/pkgs/development/python-modules/peaqevcore/default.nix
2022-06-23 04:37:55 +00:00

38 lines
803 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "peaqevcore";
version = "2.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-GU0g1jCvLcbwO9apt3r/Y8XNtiraEI83thiXI/wDIJk=";
};
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 ];
};
}