2021-03-27 16:40:29 +00:00
|
|
|
{ lib
|
2022-05-08 23:53:28 +00:00
|
|
|
, babel
|
2021-03-27 16:40:29 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
, fixtures
|
|
|
|
, mock
|
|
|
|
, pbr
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2023-07-09 22:48:00 +00:00
|
|
|
, testtools
|
2021-03-27 16:40:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "bashate";
|
2022-10-06 12:17:25 +00:00
|
|
|
version = "2.1.1";
|
2021-03-27 16:40:29 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-06 12:17:25 +00:00
|
|
|
sha256 = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
|
2021-03-27 16:40:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-08 23:53:28 +00:00
|
|
|
babel
|
2021-03-27 16:40:29 +00:00
|
|
|
pbr
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-27 16:40:29 +00:00
|
|
|
fixtures
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2023-07-09 22:48:00 +00:00
|
|
|
testtools
|
2021-03-27 16:40:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "bashate" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Style enforcement for bash programs";
|
|
|
|
homepage = "https://opendev.org/openstack/bashate";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|