nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cbor2,
5 fetchFromGitHub,
6 pycryptodome,
7 setuptools,
8 solc-select,
9 toml,
10}:
11
12buildPythonPackage rec {
13 pname = "crytic-compile";
14 version = "0.3.11";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "crytic";
19 repo = "crytic-compile";
20 tag = version;
21 hash = "sha256-NVAIVUfh1bizg/HG1z7Ze6o5w6wto744Ogq0LPg0gXg=";
22 };
23
24 propagatedBuildInputs = [
25 cbor2
26 pycryptodome
27 setuptools
28 solc-select
29 toml
30 ];
31
32 # Test require network access
33 doCheck = false;
34
35 # required for import check to work
36 # PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
37 env.HOME = "/tmp";
38 pythonImportsCheck = [ "crytic_compile" ];
39
40 meta = {
41 description = "Abstraction layer for smart contract build systems";
42 mainProgram = "crytic-compile";
43 homepage = "https://github.com/crytic/crytic-compile";
44 changelog = "https://github.com/crytic/crytic-compile/releases/tag/${src.tag}";
45 license = lib.licenses.agpl3Plus;
46 maintainers = with lib.maintainers; [
47 arturcygan
48 hellwolf
49 ];
50 };
51}