2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
python3Packages,
|
2021-03-20 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-03-20 04:20:00 +00:00
|
|
|
pname = "bashate";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.1.1";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = python3Packages.pythonOlder "3.5";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-03-20 04:20:00 +00:00
|
|
|
pbr
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-03-20 04:20:00 +00:00
|
|
|
fixtures
|
|
|
|
mock
|
2024-09-19 14:19:46 +00:00
|
|
|
stestr
|
2023-08-10 07:59:29 +00:00
|
|
|
testtools
|
2021-03-20 04:20:00 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
stestr run
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
pythonImportsCheck = [ "bashate" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Style enforcement for bash programs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bashate";
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://opendev.org/openstack/bashate";
|
|
|
|
license = with licenses; [ asl20 ];
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|