depot/third_party/nixpkgs/pkgs/development/python-modules/serverlessrepo/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

46 lines
944 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, boto3
, six
, pyyaml
, mock
}:
buildPythonPackage rec {
pname = "serverlessrepo";
version = "0.1.10";
src = fetchPypi {
inherit pname version;
sha256 = "671f48038123f121437b717ed51f253a55775590f00fbab6fbc6a01f8d05c017";
};
propagatedBuildInputs = [
six
boto3
pyyaml
];
checkInputs = [ pytest mock ];
checkPhase = ''
pytest tests/unit
'';
postPatch = ''
substituteInPlace setup.py --replace "pyyaml~=3.12" "pyyaml~=5.1"
'';
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 ];
};
}