git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.cfn-lint: 0.35.0 -> 0.35.1

* Update version * Cleanup packaging: run tests & use GitHub source * Meta: add changelog

commit4e435eee31b118d24fe132c82b1232df26e409c9 authorDrew Risinger <drewrisinger@users.noreply.github.com> dateSat 12 Sep 2020, 11:26 (6 years ago) parent9a4468b
1 file changed+25−17
pkgs/development/python-modules/cfn-lint/default.nix+25−17
pkgs/development/python-modules/cfn-lint/default.nix+25−17
@@ -1,28 +1,34 @@
11{ lib
22, buildPythonPackage
3−, fetchPypi
3+, fetchFromGitHub
44, pythonOlder
5−, pyyaml
6−, six
7−, requests
85, aws-sam-translator
96, importlib-metadata
107, importlib-resources
118, jsonpatch
129, jsonschema
13−, pathlib2
14−, setuptools
1510, junit-xml
1611, networkx
12+, pathlib2
13+, pyyaml
14+, requests
15+, setuptools
16+, six
17+# Test inputs
18+, pytestCheckHook
19+, mock
20+, pydot
1721}:
1822
1923buildPythonPackage rec {
2024 pname = "cfn-lint";
21− version = "0.35.0";
25+ version = "0.35.1";
2226
23− src = fetchPypi {
24− inherit pname version;
25− sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45";
27+ src = fetchFromGitHub {
28+ owner = "aws-cloudformation";
29+ repo = "cfn-python-lint";
30+ rev = "v${version}";
31+ sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
2632 };
2733
2834 postPatch = ''
@@ -30,20 +36,18 @@ buildPythonPackage rec {
3036 '';
3137
3238 propagatedBuildInputs = [
33− pyyaml
34− six
35− requests
3639 aws-sam-translator
3740 jsonpatch
3841 jsonschema
39− pathlib2
40− setuptools
4142 junit-xml
4243 networkx
44+ pathlib2
45+ pyyaml
46+ requests
47+ setuptools
48+ six
4349 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
4450
45− # No tests included in archive
46− doCheck = false;
4751 pythonImportsCheck = [
4852 "cfnlint"
4953 "cfnlint.conditions"
@@ -60,9 +64,13 @@ buildPythonPackage rec {
6064 "cfnlint.transform"
6165 ];
6266
67+ checkInputs = [ pytestCheckHook mock pydot ];
68+ preCheck = "export PATH=$out/bin:$PATH";
69+
6370 meta = with lib; {
6471 description = "Checks cloudformation for practices and behaviour that could potentially be improved";
6572 homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
73+ changelog = "https://github.com/aws-cloudformation/cfn-python-lint/blob/master/CHANGELOG.md";
6674 license = licenses.mit;
6775 };
6876}