Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / crytic-compile / default.nix
blob2bcda1d7fd72e7f82ca2a37031f189ed46c1c62d
1 { lib
2 , buildPythonPackage
3 , cbor2
4 , fetchFromGitHub
5 , pycryptodome
6 , pythonOlder
7 , setuptools
8 , solc-select
9 , toml
12 buildPythonPackage rec {
13   pname = "crytic-compile";
14   version = "0.3.7";
15   format = "setuptools";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "crytic";
21     repo = "crytic-compile";
22     rev = "refs/tags/${version}";
23     hash = "sha256-SMkFzGZg/6akclQ0XLUvjK3uoypsHfRru+B4VurjOrM=";
24   };
26   propagatedBuildInputs = [
27     cbor2
28     pycryptodome
29     setuptools
30     solc-select
31     toml
32   ];
34   # Test require network access
35   doCheck = false;
37   # required for import check to work
38   # PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
39   env.HOME = "/tmp";
40   pythonImportsCheck = [
41     "crytic_compile"
42   ];
44   meta = with lib; {
45     description = "Abstraction layer for smart contract build systems";
46     mainProgram = "crytic-compile";
47     homepage = "https://github.com/crytic/crytic-compile";
48     changelog = "https://github.com/crytic/crytic-compile/releases/tag/${version}";
49     license = licenses.agpl3Plus;
50     maintainers = with maintainers; [ arturcygan hellwolf ];
51   };