diff options
author | Lorenzo Manacorda <lorenzo@mailbox.org> | 2018-11-23 17:10:02 +0100 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-12-13 13:37:38 -0500 |
commit | 6283971a2ce8c0338a767a24116550d0affa84fc (patch) | |
tree | 5a729087d25c6cb64b0d41a38dd22791d1740094 /pkgs/development/python-modules/slither-analyzer | |
parent | 958a6c6dd39b0d6628e1408e798a8f1308f2f3e1 (diff) | |
download | nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar.gz nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar.bz2 nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar.lz nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar.xz nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.tar.zst nixlib-6283971a2ce8c0338a767a24116550d0affa84fc.zip |
slither-analyzer: init at 0.3.0
Diffstat (limited to 'pkgs/development/python-modules/slither-analyzer')
-rw-r--r-- | pkgs/development/python-modules/slither-analyzer/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/slither-analyzer/default.nix b/pkgs/development/python-modules/slither-analyzer/default.nix new file mode 100644 index 000000000000..10241104ef33 --- /dev/null +++ b/pkgs/development/python-modules/slither-analyzer/default.nix @@ -0,0 +1,36 @@ +{ lib, buildPythonPackage, fetchPypi, makeWrapper, prettytable, pythonOlder, solc }: + +buildPythonPackage rec { + pname = "slither-analyzer"; + version = "0.3.0"; + + disabled = pythonOlder "3.6"; + + # No Python tests + doCheck = false; + + src = fetchPypi { + inherit pname version; + sha256 = "10vrcqm371kqmf702xmqmzimv3xgrn3k3ip06nr1l6gnj3jk138g"; + }; + + nativeBuildInputs = [ makeWrapper ]; + propagatedBuildInputs = [ prettytable ]; + + 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 ]; + }; +} |