depot/pkgs/development/tools/bashate/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

49 lines
962 B
Nix

{
lib,
fetchPypi,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "bashate";
version = "2.1.1";
pyproject = true;
disabled = python3Packages.pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
};
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
babel
pbr
setuptools
];
nativeCheckInputs = with python3Packages; [
fixtures
mock
stestr
testtools
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "bashate" ];
meta = with lib; {
description = "Style enforcement for bash programs";
mainProgram = "bashate";
homepage = "https://opendev.org/openstack/bashate";
license = with licenses; [ asl20 ];
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
};
}