My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/peaqevcore/default.nix

38 lines
804 B

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "peaqevcore";
version = "0.0.23";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-z59TJ+P7WNMcTyevi4etWUFUnBJXAVhDOnO4GXjjuR0=";
};
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 ];
};
}