From 026eb8ea345a8cb8762e208e2a0575d9e8837143 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 20 Sep 2024 01:15:54 +0200 Subject: [PATCH] python312Packages.braceexpand: modernize, adopt --- .../python-modules/braceexpand/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/braceexpand/default.nix b/pkgs/development/python-modules/braceexpand/default.nix index 0b32a37698befa8..ffa97d4c19097e3 100644 --- a/pkgs/development/python-modules/braceexpand/default.nix +++ b/pkgs/development/python-modules/braceexpand/default.nix @@ -3,13 +3,14 @@ buildPythonPackage, pythonOlder, fetchPypi, + setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "braceexpand"; version = "0.1.7"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -18,15 +19,20 @@ buildPythonPackage rec { sha256 = "01gpcnksnqv6np28i4x8s3wkngawzgs99zvjfia57spa42ykkrg6"; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "braceexpand" ]; - meta = with lib; { + meta = { description = "Bash-style brace expansion for Python"; homepage = "https://github.com/trendels/braceexpand"; changelog = "https://github.com/trendels/braceexpand/blob/v${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ newam ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + newam + pbsds + ]; }; }