From 92ca1c505ba7baa11f236fb3ae220d26dfa988f3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 31 Dec 2024 13:02:44 +0100 Subject: [PATCH] python312Packages.questionary: refactor --- .../python-modules/questionary/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/questionary/default.nix b/pkgs/development/python-modules/questionary/default.nix index 3fee52df74e0..0d8ab699377a 100644 --- a/pkgs/development/python-modules/questionary/default.nix +++ b/pkgs/development/python-modules/questionary/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "questionary"; version = "2.1.0"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -23,13 +23,11 @@ buildPythonPackage rec { hash = "sha256-HiQsOkG3oK+hnyeFjebnVASxpZhUPGBGz69JvPO43fM="; }; - nativeBuildInputs = [ - poetry-core - ]; - pythonRelaxDeps = [ "prompt_toolkit" ]; - propagatedBuildInputs = [ prompt-toolkit ]; + build-system = [ poetry-core ]; + + dependencies = [ prompt-toolkit ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -48,7 +46,7 @@ buildPythonPackage rec { description = "Python library to build command line user prompts"; homepage = "https://github.com/tmbo/questionary"; changelog = "https://github.com/tmbo/questionary/blob/${src.rev}/docs/pages/changelog.rst"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }