Add salt-lint
This commit is contained in:
parent
87e002697a
commit
8078640b3a
|
@ -6,6 +6,7 @@ self: super: {
|
||||||
packageOverrides = python-self: python-super: {
|
packageOverrides = python-self: python-super: {
|
||||||
pytapo = python-self.callPackage ./pytapo { };
|
pytapo = python-self.callPackage ./pytapo { };
|
||||||
brother-ql = python-self.callPackage ./brother-ql { };
|
brother-ql = python-self.callPackage ./brother-ql { };
|
||||||
|
salt-lint = python-self.callPackage ./salt-lint { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
35
salt-lint/default.nix
Normal file
35
salt-lint/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "salt-lint";
|
||||||
|
version = "0.9.2";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "warpnet";
|
||||||
|
repo = "salt-lint";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-Q/blaqDqs9gPrMfN+e1hkCi9IPMM0osPYTDsT6UODB4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"saltlint"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A command-line utility that checks for best practices in SaltStack";
|
||||||
|
mainProgram = "salt-lint";
|
||||||
|
homepage = "https://github.com/warpnet/salt-lint";
|
||||||
|
changelog = "https://github.com/adrienverge/yamllint/blob/v${version}/CHANGELOG.rst";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fleaz ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue