Diff: https://github.com/CJNE/pyporscheconnectapi/compare/refs/tags/0.2.3...refs/tags/0.2.4 Changelog: https://github.com/CJNE/pyporscheconnectapi/releases/tag/0.2.4
49 lines
980 B
Nix
49 lines
980 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpx,
|
|
rich,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyporscheconnectapi";
|
|
version = "0.2.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CJNE";
|
|
repo = "pyporscheconnectapi";
|
|
tag = version;
|
|
hash = "sha256-fU+P2M4TQzhyNk4CfcTBpaIOFC0sPaOLh/iGCjLIG5I=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail '"pytest-runner"' ""
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
httpx
|
|
rich
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyporscheconnectapi" ];
|
|
|
|
meta = {
|
|
description = "Python client library for Porsche Connect API";
|
|
homepage = "https://github.com/CJNE/pyporscheconnectapi";
|
|
changelog = "https://github.com/CJNE/pyporscheconnectapi/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|