2022-10-06 18:32:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pysha3
|
|
|
|
, setuptools
|
|
|
|
}:
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crytic-compile";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.2.4";
|
|
|
|
format = "setuptools";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crytic";
|
|
|
|
repo = "crytic-compile";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-phb4Y8CUxuHsNt43oKsgDAZTraNauPkcYQtzcsiWyy8=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pysha3
|
|
|
|
setuptools
|
|
|
|
];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"crytic_compile"
|
|
|
|
];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Abstraction layer for smart contract build systems";
|
|
|
|
homepage = "https://github.com/crytic/crytic-compile";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 arturcygan ];
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
}
|