about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix b/nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix
index 227c0f608df8..2a2915afcd75 100644
--- a/nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix
@@ -19,7 +19,7 @@ buildPythonPackage rec {
   version = "1.73.0";
   format = "setuptools";
 
-  disabled = pythonOlder "3.6";
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "aws";
@@ -28,6 +28,11 @@ buildPythonPackage rec {
     hash = "sha256-rj+q/06gIvPYTJP/EH9ZrP0Sp4J3K1aCRyNkgpphWP4=";
   };
 
+  postPatch = ''
+    substituteInPlace pytest.ini \
+      --replace " --cov samtranslator --cov-report term-missing --cov-fail-under 95" ""
+  '';
+
   propagatedBuildInputs = [
     boto3
     jsonschema
@@ -35,12 +40,6 @@ buildPythonPackage rec {
     typing-extensions
   ];
 
-  preCheck = ''
-    sed -i '2ienv =\n\tAWS_DEFAULT_REGION=us-east-1' pytest.ini
-    substituteInPlace pytest.ini \
-      --replace " --cov samtranslator --cov-report term-missing --cov-fail-under 95" ""
-  '';
-
   nativeCheckInputs = [
     parameterized
     pytest-env
@@ -54,6 +53,10 @@ buildPythonPackage rec {
     "samtranslator"
   ];
 
+  preCheck = ''
+    sed -i '2ienv =\n\tAWS_DEFAULT_REGION=us-east-1' pytest.ini
+  '';
+
   meta = with lib; {
     description = "Python library to transform SAM templates into AWS CloudFormation templates";
     homepage = "https://github.com/aws/serverless-application-model";