3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/slither-analyzer/default.nix
2020-04-10 17:54:53 +01:00

41 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 ];
};
}