python312Packages.aws-lambda-builders: refactor

This commit is contained in:
Fabian Affolter 2024-03-22 08:39:50 +01:00
parent 93dc788c28
commit 45b4bcbac3
2 changed files with 11 additions and 6 deletions

View File

@ -7,15 +7,16 @@
, pyelftools , pyelftools
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
, six , six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aws-lambda-builders"; pname = "aws-lambda-builders";
version = "1.47.0"; version = "1.47.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "awslabs"; owner = "awslabs";
@ -26,10 +27,14 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "version=read_version()," 'version="${version}",' --replace-fail "version=read_version()," 'version="${version}",'
''; '';
propagatedBuildInputs = [ build-system = [
setuptools
];
dependencies = [
six six
]; ];

View File

@ -10,7 +10,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "aws-sam-cli"; pname = "aws-sam-cli";
version = "1.110.0"; version = "1.113.0";
pyproject = true; pyproject = true;
disabled = python3.pythonOlder "3.8"; disabled = python3.pythonOlder "3.8";
@ -19,7 +19,7 @@ python3.pkgs.buildPythonApplication rec {
owner = "aws"; owner = "aws";
repo = "aws-sam-cli"; repo = "aws-sam-cli";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-FJHHEsdi2uGP9/GxrANsVEuxZiS4M4BPBGoARQBQpkA="; hash = "sha256-9DHqjhJfWkMJxu2gccbbuzoW9IxDqCBoi8slWnugeJM=";
}; };
build-system = with python3.pkgs; [ build-system = with python3.pkgs; [