Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.aws-sam-translator: init at 1.5.4 #41474

Merged
merged 2 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@
github = "andir";
name = "Andreas Rammhold";
};
andreabedini = {
email = "andrea@kzn.io";
github = "andreabedini";
name = "Andrea Bedini";
};
andres = {
email = "ksnixos@andres-loeh.de";
github = "kosmikus";
Expand Down
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/aws-sam-translator/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, boto3
, enum34
, jsonschema
, six
}:

buildPythonPackage rec {
pname = "aws-sam-translator";
version = "1.5.4";

src = fetchPypi {
inherit pname version;
sha256 = "9d8a25e058c78d2cef5c07aec7f98cbc2070dbfc2eb6a2e102a16beafd14e3ca";
};

# Tests are not included in the PyPI package
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to use fetchFromGitHub in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into it but the versions don't line up, latest tag on GitHub is 1.5 but latest version on PyPi is 1.5.4. The released version is probably just master but they really should tag it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, then better stick with fetchPypi.

doCheck = false;

disabled = isPy3k;

propagatedBuildInputs = [
boto3
enum34
jsonschema
six
];

meta = {
homepage = https://github.com/awslabs/serverless-application-model;
description = "Python library to transform SAM templates into AWS CloudFormation templates";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.andreabedini ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ in {

automat = callPackage ../development/python-modules/automat { };

aws-sam-translator = callPackage ../development/python-modules/aws-sam-translator { };

aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { };

# packages defined elsewhere
Expand Down