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

View File

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