Add salt-lint

This commit is contained in:
fleaz 2024-04-30 17:46:53 +02:00
parent 87e002697a
commit 8078640b3a
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 36 additions and 0 deletions

View file

@ -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
View 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 ];
};
}