From 0bf7908b1dbc2df66cbb4b6c7bb7001d0356f7a7 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Aug 2024 18:50:26 +0200 Subject: [PATCH] python312Packages.pyweatherflowrest: modernize --- .../python-modules/pyweatherflowrest/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pyweatherflowrest/default.nix b/pkgs/development/python-modules/pyweatherflowrest/default.nix index 3ae2b78132ef..44d0ab267280 100644 --- a/pkgs/development/python-modules/pyweatherflowrest/default.nix +++ b/pkgs/development/python-modules/pyweatherflowrest/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pyweatherflowrest"; version = "1.0.11"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -21,14 +21,9 @@ buildPythonPackage rec { hash = "sha256-l1V3HgzqnnoY6sWHwfgBtcIR782RwKhekY2qOLrUMNY="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ aiohttp ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--cov=pyweatherflowrest --cov-append" "" - ''; + dependencies = [ aiohttp ]; # Module has no tests. test.py is a demo script doCheck = false;