Merge pull request #305927 from fabaff/ovoenergy-bump

python312Packages.ovoenergy: 1.3.1 -> 2.0.0
This commit is contained in:
Fabian Affolter 2024-04-22 23:01:01 +02:00 committed by GitHub
commit 29a7aae02b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,54 +1,48 @@
{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, incremental
, pydantic
, pythonOlder
, typer
{
lib,
aiohttp,
buildPythonPackage,
click,
fetchFromGitHub,
incremental,
pythonOlder,
setuptools,
typer,
}:
buildPythonPackage rec {
pname = "ovoenergy";
version = "1.3.1";
format = "setuptools";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "timmo001";
repo = pname;
repo = "ovoenergy";
rev = "refs/tags/${version}";
hash = "sha256-oeNwBmzlkE8JewSwuFG8OYigyispP4xdwO3s2CAcfW4=";
hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk=";
};
nativeBuildInputs = [
incremental
];
build-system = [ setuptools ];
postPatch = ''
substituteInPlace requirements.txt \
--replace "typer==0.6.1" "typer"
'';
nativeBuildInputs = [ incremental ];
propagatedBuildInputs = [
dependencies = [
aiohttp
click
pydantic
typer
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"ovoenergy"
];
pythonImportsCheck = [ "ovoenergy" ];
meta = with lib; {
description = "Python client for getting data from OVO's API";
homepage = "https://github.com/timmo001/ovoenergy";
changelog = "https://github.com/timmo001/ovoenergy/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};