@@ -0,0 +1,42 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytest
5+, boto3
6+, six
7+, pyyaml
8+, mock
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "serverlessrepo";
13+ version = "0.1.8";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25";
18+ };
19+
20+ propagatedBuildInputs = [
21+ six
22+ boto3
23+ pyyaml
24+ ];
25+
26+ checkInputs = [ pytest mock ];
27+
28+ checkPhase = ''
29+ pytest tests/unit
30+ '';
31+
32+ meta = with lib; {
33+ homepage = https://github.com/awslabs/aws-serverlessrepo-python;
34+ description = "Helpers for working with the AWS Serverless Application Repository";
35+ longDescription = ''
36+ A Python library with convenience helpers for working with the
37+ AWS Serverless Application Repository.
38+ '';
39+ license = lib.licenses.asl20;
40+ maintainers = with maintainers; [ dhkl ];
41+ };
42+}