Merge pull request #170474 from fabaff/peaqevcore
python39Packages.peaqevcore: init at 0.0.16
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "peaqevcore";
|
||||
version = "0.0.16";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-VYJzypRiVOF4FrvglAp2NWMUNxZx2Fq1Pw7lx0xbVFw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "datetime" "" \
|
||||
--replace "statistics" "" \
|
||||
--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 ];
|
||||
};
|
||||
}
|
||||
@@ -6128,6 +6128,8 @@ in {
|
||||
|
||||
pdoc3 = callPackage ../development/python-modules/pdoc3 { };
|
||||
|
||||
peaqevcore = callPackage ../development/python-modules/peaqevcore { };
|
||||
|
||||
pebble = callPackage ../development/python-modules/pebble { };
|
||||
|
||||
pecan = callPackage ../development/python-modules/pecan { };
|
||||
|
||||
Reference in New Issue
Block a user