nixpkgs/pkgs/development/python-modules/peaqevcore/default.nix
2024-04-03 09:50:28 +02:00

44 lines
916 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "peaqevcore";
version = "19.7.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/oo24hOH2aIXZH0CwmgTNIvA2MJWvOR084rZEOdldGM=";
};
postPatch = ''
sed -i "/extras_require/d" setup.py
'';
build-system = [
setuptools
];
# 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";
changelog = "https://github.com/elden1337/peaqev-core/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}