1{ lib
2, babel
3, buildPythonApplication
4, fetchPypi
5, fixtures
6, mock
7, pbr
8, pytestCheckHook
9, pythonOlder
10, setuptools
11}:
12
13buildPythonApplication rec {
14 pname = "bashate";
15 version = "2.1.1";
16 disabled = pythonOlder "3.5";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
21 };
22
23 propagatedBuildInputs = [
24 babel
25 pbr
26 setuptools
27 ];
28
29 nativeCheckInputs = [
30 fixtures
31 mock
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "bashate" ];
36
37 meta = with lib; {
38 description = "Style enforcement for bash programs";
39 homepage = "https://opendev.org/openstack/bashate";
40 license = with licenses; [ asl20 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}