depot/third_party/nixpkgs/pkgs/development/python-modules/crytic-compile/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

31 lines
845 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pysha3, setuptools }:
buildPythonPackage rec {
pname = "crytic-compile";
version = "0.1.13";
disabled = pythonOlder "3.6";
patchPhase = ''
substituteInPlace setup.py --replace 'version="0.1.11",' 'version="${version}",'
'';
src = fetchFromGitHub {
owner = "crytic";
repo = "crytic-compile";
rev = version;
sha256 = "sha256-KJRfkUyUI0M7HevY4XKOtCvU+SFlsJIl3kTIccWfNmw=";
};
propagatedBuildInputs = [ pysha3 setuptools ];
doCheck = false;
pythonImportsCheck = [ "crytic_compile" ];
meta = with lib; {
description = "Abstraction layer for smart contract build systems";
homepage = "https://github.com/crytic/crytic-compile";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ SuperSandro2000 arturcygan ];
};
}