nixpkgs/pkgs/development/tools/bashate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
808 B
Nix
Raw Normal View History

2021-03-27 19:40:29 +03:00
{ lib
, babel
2021-03-27 19:40:29 +03:00
, buildPythonApplication
, fetchPypi
, fixtures
, mock
, pbr
, pytestCheckHook
, pythonOlder
, setuptools
, testtools
2021-03-27 19:40:29 +03:00
}:
buildPythonApplication rec {
pname = "bashate";
2022-10-06 15:17:25 +03:00
version = "2.1.1";
2021-03-27 19:40:29 +03:00
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
2022-10-06 15:17:25 +03:00
sha256 = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
2021-03-27 19:40:29 +03:00
};
propagatedBuildInputs = [
babel
2021-03-27 19:40:29 +03:00
pbr
setuptools
];
nativeCheckInputs = [
2021-03-27 19:40:29 +03:00
fixtures
mock
pytestCheckHook
testtools
2021-03-27 19:40:29 +03:00
];
pythonImportsCheck = [ "bashate" ];
meta = with lib; {
description = "Style enforcement for bash programs";
mainProgram = "bashate";
2021-03-27 19:40:29 +03:00
homepage = "https://opendev.org/openstack/bashate";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}