1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 packaging,
7 pycryptodome,
8}:
9
10buildPythonPackage rec {
11 pname = "solc-select";
12 version = "1.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "crytic";
17 repo = "solc-select";
18 tag = "v${version}";
19 hash = "sha256-ZB9WM6YTWEqfs5y1DqxbSADiFw997PHIR9uVSjJg1/E=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 packaging
26 pycryptodome
27 ];
28
29 # no tests
30 doCheck = false;
31 pythonImportsCheck = [ "solc_select" ];
32
33 meta = with lib; {
34 description = "Manage and switch between Solidity compiler versions";
35 homepage = "https://github.com/crytic/solc-select";
36 license = licenses.agpl3Plus;
37 maintainers = with maintainers; [ arturcygan ];
38 };
39}