2020-11-21 14:16:06 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pysha3, setuptools }:
|
2020-11-05 21:02:14 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "crytic-compile";
|
2021-04-05 04:04:25 +01:00
|
|
|
version = "0.1.13";
|
2020-11-05 21:02:14 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-01-06 20:09:46 +00:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.py --replace 'version="0.1.11",' 'version="${version}",'
|
|
|
|
'';
|
|
|
|
|
2020-11-05 21:02:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crytic";
|
|
|
|
repo = "crytic-compile";
|
|
|
|
rev = version;
|
2021-04-05 04:04:25 +01:00
|
|
|
sha256 = "sha256-KJRfkUyUI0M7HevY4XKOtCvU+SFlsJIl3kTIccWfNmw=";
|
2020-11-05 21:02:14 +00:00
|
|
|
};
|
|
|
|
|
2020-11-21 14:16:06 +00:00
|
|
|
propagatedBuildInputs = [ pysha3 setuptools ];
|
2020-11-05 21:02:14 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2021-01-09 11:59:00 +00:00
|
|
|
pythonImportsCheck = [ "crytic_compile" ];
|
2020-11-05 21:02:14 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Abstraction layer for smart contract build systems";
|
|
|
|
homepage = "https://github.com/crytic/crytic-compile";
|
2021-01-06 20:09:46 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 arturcygan ];
|
2020-11-05 21:02:14 +00:00
|
|
|
};
|
|
|
|
}
|