mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python312Packages.energyzero: 2.1.1 -> 2.1.1
Diff: https://github.com/klaasnicolaas/python-energyzero/compare/refs/tags/v2.1.1...v2.1.1 Changelog: https://github.com/klaasnicolaas/python-energyzero/releases/tag/v2.1.1
This commit is contained in:
parent
a7b235322e
commit
9adf492368
@ -9,13 +9,14 @@
|
||||
pytest-freezer,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
syrupy,
|
||||
yarl,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "energyzero";
|
||||
version = "2.1.0";
|
||||
format = "pyproject";
|
||||
version = "2.1.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
@ -23,16 +24,16 @@ buildPythonPackage rec {
|
||||
owner = "klaasnicolaas";
|
||||
repo = "python-energyzero";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-NZbCiLCZC+hTcV0twOeCoKKD3eZ0/ZzPTnVpFyMLSfw=";
|
||||
hash = "sha256-KOeYdTruD8AN/NkLEKKJDUB/JkOoQwfAMZkp/RvvUQE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"0.0.0"' '"${version}"' \
|
||||
--replace 'addopts = "--cov"' ""
|
||||
--replace-fail '"0.0.0"' '"${version}"' \
|
||||
--replace-fail 'addopts = "--cov"' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
@ -44,6 +45,7 @@ buildPythonPackage rec {
|
||||
pytest-asyncio
|
||||
pytest-freezer
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "energyzero" ];
|
||||
|
Loading…
Reference in New Issue
Block a user