From 0d1ec03d1a3e70a546183e53795398ecfdbfd881 Mon Sep 17 00:00:00 2001 From: David Leung Date: Sat, 6 Apr 2019 19:50:49 +0800 Subject: [PATCH] pythonPackages.serverlessrepo: init at 0.1.8 A Python library with convenience helpers for working with the AWS Serverless Application Repository. --- .../python-modules/serverlessrepo/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/serverlessrepo/default.nix diff --git a/pkgs/development/python-modules/serverlessrepo/default.nix b/pkgs/development/python-modules/serverlessrepo/default.nix new file mode 100644 index 000000000000..d70abe1f95fd --- /dev/null +++ b/pkgs/development/python-modules/serverlessrepo/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, boto3 +, six +, pyyaml +, mock +}: + +buildPythonPackage rec { + pname = "serverlessrepo"; + version = "0.1.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25"; + }; + + propagatedBuildInputs = [ + six + boto3 + pyyaml + ]; + + checkInputs = [ pytest mock ]; + + checkPhase = '' + pytest tests/unit + ''; + + meta = with lib; { + homepage = https://github.com/awslabs/aws-serverlessrepo-python; + description = "Helpers for working with the AWS Serverless Application Repository"; + longDescription = '' + A Python library with convenience helpers for working with the + AWS Serverless Application Repository. + ''; + license = lib.licenses.asl20; + maintainers = with maintainers; [ dhkl ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1cabba8ea42f..7fa9e7b2c8ca 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4201,6 +4201,8 @@ in { setuptools_scm = callPackage ../development/python-modules/setuptools_scm { }; + serverlessrepo = callPackage ../development/python-modules/serverlessrepo { }; + shippai = callPackage ../development/python-modules/shippai {}; simanneal = callPackage ../development/python-modules/simanneal { };