1{ lib
2, buildPythonPackage
3, cbor2
4, fetchFromGitHub
5, pycryptodome
6, pythonOlder
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "crytic-compile";
12 version = "0.3.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "crytic";
19 repo = "crytic-compile";
20 rev = "refs/tags/${version}";
21 hash = "sha256-4iTvtu2TmxvLTyWm4PV0+yV1fRLYpJHZNBgjy1MFLjM=";
22 };
23
24 propagatedBuildInputs = [
25 cbor2
26 pycryptodome
27 setuptools
28 ];
29
30 # Test require network access
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "crytic_compile"
35 ];
36
37 meta = with lib; {
38 description = "Abstraction layer for smart contract build systems";
39 homepage = "https://github.com/crytic/crytic-compile";
40 changelog = "https://github.com/crytic/crytic-compile/releases/tag/${version}";
41 license = licenses.agpl3Plus;
42 maintainers = with maintainers; [ SuperSandro2000 arturcygan ];
43 };
44}