8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, makeWrapper, pythonOlder
|
|
, prettytable
|
|
, setuptools
|
|
, solc
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "slither-analyzer";
|
|
version = "0.6.9";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# No Python tests
|
|
doCheck = false;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "fb057eb7f5416ac76b6ab03bb5c20c39cb7b97c7689ce1e7244c9088bd28f513";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
propagatedBuildInputs = [ prettytable setuptools ];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/slither \
|
|
--prefix PATH : "${lib.makeBinPath [ solc ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Static Analyzer for Solidity";
|
|
longDescription = ''
|
|
Slither is a Solidity static analysis framework written in Python 3. It
|
|
runs a suite of vulnerability detectors, prints visual information about
|
|
contract details, and provides an API to easily write custom analyses.
|
|
'';
|
|
homepage = "https://github.com/trailofbits/slither";
|
|
license = licenses.agpl3;
|
|
maintainers = [ maintainers.asymmetric ];
|
|
};
|
|
}
|