mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
46 lines
808 B
Nix
46 lines
808 B
Nix
{ lib
|
|
, babel
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
, fixtures
|
|
, mock
|
|
, pbr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, testtools
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "bashate";
|
|
version = "2.1.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
babel
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
fixtures
|
|
mock
|
|
pytestCheckHook
|
|
testtools
|
|
];
|
|
|
|
pythonImportsCheck = [ "bashate" ];
|
|
|
|
meta = with lib; {
|
|
description = "Style enforcement for bash programs";
|
|
mainProgram = "bashate";
|
|
homepage = "https://opendev.org/openstack/bashate";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|