python3Packages.easyenergy: 2.2.0 -> 3.0.0
Diff: https://github.com/klaasnicolaas/python-easyenergy/compare/v2.2.0...v3.0.0 Changelog: https://github.com/klaasnicolaas/python-easyenergy/releases/tag/v3.0.0
This commit is contained in:
committed by
Martin Weinelt
parent
d8a4c718fa
commit
1aeb2bca2a
@@ -4,25 +4,27 @@
|
||||
aresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
mashumaro,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytest-freezer,
|
||||
pytestCheckHook,
|
||||
syrupy,
|
||||
typer,
|
||||
yarl,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easyenergy";
|
||||
version = "2.2.0";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "klaasnicolaas";
|
||||
repo = "python-easyenergy";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-AFEygSSHr7YJK4Yx4dvBVGR3wBswAeUNrC/7NndzfBg=";
|
||||
hash = "sha256-aCRXL//hGJyG1eIonz/HJqFyG9eGKOoFhd6yD5zAR3s=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -30,13 +32,23 @@ buildPythonPackage rec {
|
||||
--replace '"0.0.0"' '"${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pythonRelaxDeps = [
|
||||
"aiohttp"
|
||||
"mashumaro"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
mashumaro
|
||||
yarl
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
cli = [ typer ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
@@ -44,7 +56,8 @@ buildPythonPackage rec {
|
||||
pytest-freezer
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
]
|
||||
++ lib.concatAttrValues optional-dependencies;
|
||||
|
||||
pythonImportsCheck = [ "easyenergy" ];
|
||||
|
||||
@@ -68,6 +81,7 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/klaasnicolaas/python-easyenergy";
|
||||
changelog = "https://github.com/klaasnicolaas/python-easyenergy/releases/tag/${src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "easyenergy";
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user