about summary refs log tree commit diff
path: root/pkgs/development/python-modules/serverlessrepo/default.nix
diff options
context:
space:
mode:
authorDavid Leung <david@davidslab.com>2019-04-06 19:50:49 +0800
committerDavid Leung <david@davidslab.com>2019-04-08 15:23:26 +0800
commit0d1ec03d1a3e70a546183e53795398ecfdbfd881 (patch)
tree2f3b0ae357742873a412ded3c07fb5affc427a42 /pkgs/development/python-modules/serverlessrepo/default.nix
parent9e9e73b1164e21e50a5c523a6c240a53822da8ff (diff)
downloadnixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar.gz
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar.bz2
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar.lz
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar.xz
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.tar.zst
nixlib-0d1ec03d1a3e70a546183e53795398ecfdbfd881.zip
pythonPackages.serverlessrepo: init at 0.1.8
A Python library with convenience helpers for working with the AWS Serverless
Application Repository.
Diffstat (limited to 'pkgs/development/python-modules/serverlessrepo/default.nix')
-rw-r--r--pkgs/development/python-modules/serverlessrepo/default.nix42
1 files changed, 42 insertions, 0 deletions
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 ];
+  };
+}