Merge pull request #304759 from fabaff/renault-api-bump
python312Packages.renault-api: 0.2.1 -> 0.2.2
This commit is contained in:
commit
a9258b1c4f
|
@ -1,66 +1,73 @@
|
||||||
{ lib
|
{
|
||||||
, aiohttp
|
lib,
|
||||||
, aioresponses
|
aiohttp,
|
||||||
, buildPythonPackage
|
aioresponses,
|
||||||
, click
|
buildPythonPackage,
|
||||||
, dateparser
|
click,
|
||||||
, fetchFromGitHub
|
cryptography,
|
||||||
, marshmallow-dataclass
|
dateparser,
|
||||||
, poetry-core
|
fetchFromGitHub,
|
||||||
, pyjwt
|
marshmallow-dataclass,
|
||||||
, pythonOlder
|
poetry-core,
|
||||||
, pytest-asyncio
|
pyjwt,
|
||||||
, pytestCheckHook
|
pythonOlder,
|
||||||
, tabulate
|
pytest-asyncio,
|
||||||
|
pytestCheckHook,
|
||||||
|
tabulate,
|
||||||
|
typeguard,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "renault-api";
|
pname = "renault-api";
|
||||||
version = "0.2.1";
|
version = "0.2.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hacf-fr";
|
owner = "hacf-fr";
|
||||||
repo = pname;
|
repo = "renault-api";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-HDaX94XHkyrIA0hWYwcpUItEIeRK2ACvS6jg1YA6Wv4=";
|
hash = "sha256-FZ1VNO8gEH7HJRu9EVuKIwSQbceG720tCVqAPqHwISQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
click
|
cryptography
|
||||||
dateparser
|
|
||||||
marshmallow-dataclass
|
marshmallow-dataclass
|
||||||
pyjwt
|
pyjwt
|
||||||
tabulate
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
dependencies = [
|
||||||
aioresponses
|
aioresponses
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
cli = [
|
||||||
|
click
|
||||||
|
dateparser
|
||||||
|
tabulate
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
typeguard
|
||||||
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [ "--asyncio-mode=auto" ];
|
||||||
"--asyncio-mode=auto"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "renault_api" ];
|
||||||
"renault_api"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library to interact with the Renault API";
|
description = "Python library to interact with the Renault API";
|
||||||
mainProgram = "renault-api";
|
|
||||||
homepage = "https://github.com/hacf-fr/renault-api";
|
homepage = "https://github.com/hacf-fr/renault-api";
|
||||||
changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}";
|
changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "renault-api";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user