Merge pull request #310516 from fabaff/pytrydan-bump
python312Packages.pytrydan: 0.4.0 -> 0.6.0
This commit is contained in:
commit
372bb82a1c
1 changed files with 22 additions and 25 deletions
|
@ -1,22 +1,23 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, httpx
|
fetchFromGitHub,
|
||||||
, orjson
|
httpx,
|
||||||
, poetry-core
|
orjson,
|
||||||
, pytest-asyncio
|
poetry-core,
|
||||||
, pytestCheckHook
|
pytest-asyncio,
|
||||||
, pythonOlder
|
pytestCheckHook,
|
||||||
, respx
|
pythonOlder,
|
||||||
, rich
|
respx,
|
||||||
, syrupy
|
rich,
|
||||||
, tenacity
|
syrupy,
|
||||||
, typer
|
tenacity,
|
||||||
|
typer,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytrydan";
|
pname = "pytrydan";
|
||||||
version = "0.4.0";
|
version = "0.6.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.10";
|
disabled = pythonOlder "3.10";
|
||||||
|
@ -25,19 +26,17 @@ buildPythonPackage rec {
|
||||||
owner = "dgomes";
|
owner = "dgomes";
|
||||||
repo = "pytrydan";
|
repo = "pytrydan";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-9PyRICtZ+0Ezinu28oFgFOSnOyCmD7zZbdc/chN+sCo=";
|
hash = "sha256-+hFwBFYtRseVwesZtSrL3J/ZnsMAjD2ZAhTlk41hfqU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace " --cov=pytrydan --cov-report=term-missing:skip-covered" ""
|
--replace-fail " --cov=pytrydan --cov-report=term-missing:skip-covered" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
httpx
|
httpx
|
||||||
orjson
|
orjson
|
||||||
rich
|
rich
|
||||||
|
@ -52,16 +51,14 @@ buildPythonPackage rec {
|
||||||
syrupy
|
syrupy
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "pytrydan" ];
|
||||||
"pytrydan"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library to interface with V2C EVSE Trydan";
|
description = "Library to interface with V2C EVSE Trydan";
|
||||||
mainProgram = "pytrydan";
|
|
||||||
homepage = "https://github.com/dgomes/pytrydan";
|
homepage = "https://github.com/dgomes/pytrydan";
|
||||||
changelog = "https://github.com/dgomes/pytrydan/blob/${version}/CHANGELOG.md";
|
changelog = "https://github.com/dgomes/pytrydan/blob/${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "pytrydan";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue