mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
41 lines
1.0 KiB
Nix
41 lines
1.0 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 ];
|
|
};
|
|
}
|