From 161c71f5b756209c381fcf8553c6e8339b0b7133 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Apr 2024 08:41:05 +0200 Subject: [PATCH] python312Packages.ovoenergy: refactor --- .../python-modules/ovoenergy/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/ovoenergy/default.nix b/pkgs/development/python-modules/ovoenergy/default.nix index d6765a6c519c..805d2bf94ac5 100644 --- a/pkgs/development/python-modules/ovoenergy/default.nix +++ b/pkgs/development/python-modules/ovoenergy/default.nix @@ -4,38 +4,36 @@ , click , fetchFromGitHub , incremental -, pydantic , pythonOlder +, setuptools , typer }: buildPythonPackage rec { pname = "ovoenergy"; version = "2.0.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "timmo001"; - repo = pname; + repo = "ovoenergy"; rev = "refs/tags/${version}"; hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk="; }; + build-system = [ + setuptools + ]; + nativeBuildInputs = [ incremental ]; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "typer==0.6.1" "typer" - ''; - - propagatedBuildInputs = [ + dependencies = [ aiohttp click - pydantic typer ];