From 1e88c6cdd0c960600b1d46d60508d8058ae1c1aa Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Wed, 25 Jun 2025 23:54:48 +0800 Subject: [PATCH] gigalixir: modernize --- pkgs/by-name/gi/gigalixir/package.nix | 36 ++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/gi/gigalixir/package.nix b/pkgs/by-name/gi/gigalixir/package.nix index cd3106eeeb02..5364e4e9ed28 100644 --- a/pkgs/by-name/gi/gigalixir/package.nix +++ b/pkgs/by-name/gi/gigalixir/package.nix @@ -1,15 +1,15 @@ { stdenv, lib, - python3, + python3Packages, fetchPypi, git, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "gigalixir"; version = "1.13.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -18,11 +18,15 @@ python3.pkgs.buildPythonApplication rec { postPatch = '' substituteInPlace setup.py \ - --replace "'pytest-runner'," "" \ - --replace "cryptography==" "cryptography>=" + --replace-fail "'pytest-runner'," "" \ + --replace-fail "cryptography==" "cryptography>=" ''; - propagatedBuildInputs = with python3.pkgs; [ + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ click pygments pyopenssl @@ -32,15 +36,13 @@ python3.pkgs.buildPythonApplication rec { stripe ]; - nativeCheckInputs = - [ - git - ] - ++ (with python3.pkgs; [ - httpretty - pytestCheckHook - sure - ]); + nativeCheckInputs = with python3Packages; [ + git + + httpretty + pytestCheckHook + sure + ]; disabledTests = [ # Test requires network access @@ -57,11 +59,11 @@ python3.pkgs.buildPythonApplication rec { "gigalixir" ]; - meta = with lib; { + meta = { broken = stdenv.hostPlatform.isDarwin; description = "Gigalixir Command-Line Interface"; homepage = "https://github.com/gigalixir/gigalixir-cli"; - license = licenses.mit; + license = lib.licenses.mit; maintainers = [ ]; mainProgram = "gigalixir"; };