File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
pkgs/development/python-modules/easyenergy Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 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
1517buildPythonPackage 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}
You can’t perform that action at this time.
0 commit comments