setools: remove 'with lib;'
This commit is contained in:
committed by
Valentin Gagarin
parent
8cbfd35f75
commit
3269966314
@@ -3,10 +3,7 @@
|
||||
, withGraphics ? false
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with python3.pkgs;
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "setools";
|
||||
version = "4.5.1";
|
||||
|
||||
@@ -17,12 +14,12 @@ buildPythonApplication rec {
|
||||
hash = "sha256-/6dOzSz2Do4d6TSS50fuak0CysoQ532zJ0bJ532BUCE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
nativeBuildInputs = [ python3.pkgs.cython ];
|
||||
buildInputs = [ libsepol ];
|
||||
propagatedBuildInputs = [ enum34 libselinux networkx setuptools ]
|
||||
++ optionals withGraphics [ pyqt5 ];
|
||||
propagatedBuildInputs = with python3.pkgs; [ enum34 libselinux networkx setuptools ]
|
||||
++ lib.optionals withGraphics [ pyqt5 ];
|
||||
|
||||
nativeCheckInputs = [ tox checkpolicy ];
|
||||
nativeCheckInputs = [ python3.pkgs.tox checkpolicy ];
|
||||
preCheck = ''
|
||||
export CHECKPOLICY=${checkpolicy}/bin/checkpolicy
|
||||
'';
|
||||
@@ -33,7 +30,7 @@ buildPythonApplication rec {
|
||||
export SEPOL="${lib.getLib libsepol}/lib/libsepol.a"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "SELinux Policy Analysis Tools";
|
||||
homepage = "https://github.com/SELinuxProject/setools";
|
||||
license = licenses.gpl2Only;
|
||||
|
||||
Reference in New Issue
Block a user