3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/crytic-compile/default.nix
2021-02-03 13:55:18 +01:00

32 lines
846 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pysha3, setuptools }:
buildPythonPackage rec {
pname = "crytic-compile";
version = "0.1.12";
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 = "1q75n84yxv2cb6x7gqyk3vcwkxpq7pni30wgz3d1bk6pmi2pqgw6";
};
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 ];
};
}