pythonPackages.cfn-lint: 0.35.0 -> 0.35.1

* Update version
* Cleanup packaging: run tests & use GitHub source
* Meta: add changelog
This commit is contained in:
Drew Risinger 2020-09-12 11:26:12 -04:00 committed by Jon
parent 9a4468b935
commit 4e435eee31

View File

@ -1,28 +1,34 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, pythonOlder , pythonOlder
, pyyaml
, six
, requests
, aws-sam-translator , aws-sam-translator
, importlib-metadata , importlib-metadata
, importlib-resources , importlib-resources
, jsonpatch , jsonpatch
, jsonschema , jsonschema
, pathlib2
, setuptools
, junit-xml , junit-xml
, networkx , networkx
, pathlib2
, pyyaml
, requests
, setuptools
, six
# Test inputs
, pytestCheckHook
, mock
, pydot
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cfn-lint"; pname = "cfn-lint";
version = "0.35.0"; version = "0.35.1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "aws-cloudformation";
sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45"; repo = "cfn-python-lint";
rev = "v${version}";
sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
}; };
postPatch = '' postPatch = ''
@ -30,20 +36,18 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
pyyaml
six
requests
aws-sam-translator aws-sam-translator
jsonpatch jsonpatch
jsonschema jsonschema
pathlib2
setuptools
junit-xml junit-xml
networkx networkx
pathlib2
pyyaml
requests
setuptools
six
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ]; ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
# No tests included in archive
doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"cfnlint" "cfnlint"
"cfnlint.conditions" "cfnlint.conditions"
@ -60,9 +64,13 @@ buildPythonPackage rec {
"cfnlint.transform" "cfnlint.transform"
]; ];
checkInputs = [ pytestCheckHook mock pydot ];
preCheck = "export PATH=$out/bin:$PATH";
meta = with lib; { meta = with lib; {
description = "Checks cloudformation for practices and behaviour that could potentially be improved"; description = "Checks cloudformation for practices and behaviour that could potentially be improved";
homepage = "https://github.com/aws-cloudformation/cfn-python-lint"; homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
}; };
} }