From c1e579ce60a818b3305094c5ee5dc096091356d2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Apr 2024 10:44:07 +0200 Subject: [PATCH] python312Packages.s3-credentials: format with nixfmt --- .../python-modules/s3-credentials/default.nix | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/s3-credentials/default.nix b/pkgs/development/python-modules/s3-credentials/default.nix index 706967584798..4d7755894aa6 100644 --- a/pkgs/development/python-modules/s3-credentials/default.nix +++ b/pkgs/development/python-modules/s3-credentials/default.nix @@ -1,31 +1,35 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, click -, click-default-group -, boto3 -, pytestCheckHook -, hypothesis -, pytest-mock -, moto +{ + lib, + boto3, + buildPythonPackage, + click, + click-default-group, + fetchFromGitHub, + hypothesis, + moto, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "s3-credentials"; version = "0.16.1"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "simonw"; - repo = pname; + repo = "s3-credentials"; rev = "refs/tags/${version}"; hash = "sha256-TuGrKSfnn0CSMpRxdCM6C446z+y9d2ZLB7+wSCxSqP4="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ boto3 click click-default-group @@ -38,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "s3_credentials" - ]; + pythonImportsCheck = [ "s3_credentials" ]; disabledTests = [ # AssertionError: assert 'directory/th...ory/... @@ -49,9 +51,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python CLI utility for creating credentials for accessing S3 buckets"; - mainProgram = "s3-credentials"; homepage = "https://github.com/simonw/s3-credentials"; + changelog = "https://github.com/simonw/s3-credentials/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ techknowlogick ]; + mainProgram = "s3-credentials"; }; }