Skip to content

Commit b8743c7

Browse files
committed
python313Packages.easyenergy: 2.1.2 -> 2.2.0
Changelog: https://github.com/klaasnicolaas/python-easyenergy/releases/tag/v2.2.0
1 parent b5d0493 commit b8743c7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pkgs/development/python-modules/easyenergy/default.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
fetchFromGitHub,
77
poetry-core,
88
pytest-asyncio,
9+
pytest-cov-stub,
910
pytest-freezer,
1011
pytestCheckHook,
1112
pythonOlder,
13+
syrupy,
1214
yarl,
1315
}:
1416

1517
buildPythonPackage rec {
1618
pname = "easyenergy";
17-
version = "2.1.2";
19+
version = "2.2.0";
1820
pyproject = true;
1921

2022
disabled = pythonOlder "3.11";
@@ -23,13 +25,12 @@ buildPythonPackage rec {
2325
owner = "klaasnicolaas";
2426
repo = "python-easyenergy";
2527
tag = "v${version}";
26-
hash = "sha256-tWKfcGznxck8VLK3YshOIbPet2CEbUZbT8JzgaAhAso=";
28+
hash = "sha256-AFEygSSHr7YJK4Yx4dvBVGR3wBswAeUNrC/7NndzfBg=";
2729
};
2830

2931
postPatch = ''
3032
substituteInPlace pyproject.toml \
31-
--replace '"0.0.0"' '"${version}"' \
32-
--replace 'addopts = "--cov"' ""
33+
--replace '"0.0.0"' '"${version}"'
3334
'';
3435

3536
nativeBuildInputs = [ poetry-core ];
@@ -42,8 +43,10 @@ buildPythonPackage rec {
4243
nativeCheckInputs = [
4344
aresponses
4445
pytest-asyncio
46+
pytest-cov-stub
4547
pytest-freezer
4648
pytestCheckHook
49+
syrupy
4750
];
4851

4952
pythonImportsCheck = [ "easyenergy" ];
@@ -66,8 +69,8 @@ buildPythonPackage rec {
6669
meta = with lib; {
6770
description = "Module for getting energy/gas prices from easyEnergy";
6871
homepage = "https://github.com/klaasnicolaas/python-easyenergy";
69-
changelog = "https://github.com/klaasnicolaas/python-easyenergy/releases/tag/v${version}";
70-
license = with licenses; [ mit ];
72+
changelog = "https://github.com/klaasnicolaas/python-easyenergy/releases/tag/${src.tag}";
73+
license = licenses.mit;
7174
maintainers = with maintainers; [ fab ];
7275
};
7376
}

0 commit comments

Comments
 (0)