2019-04-06 12:50:49 +01:00
|
|
|
{ lib
|
2019-05-25 13:32:29 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, boto3
|
|
|
|
, six
|
|
|
|
, pyyaml
|
|
|
|
, mock
|
2019-04-06 12:50:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "serverlessrepo";
|
2019-10-16 10:43:15 +01:00
|
|
|
version = "0.1.10";
|
2019-04-06 12:50:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:15 +01:00
|
|
|
sha256 = "671f48038123f121437b717ed51f253a55775590f00fbab6fbc6a01f8d05c017";
|
2019-04-06 12:50:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
boto3
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
2019-05-25 13:32:29 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1"
|
|
|
|
'';
|
|
|
|
|
2019-04-06 12:50:49 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/awslabs/aws-serverlessrepo-python";
|
2019-04-06 12:50:49 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|