2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
, packaging
|
|
|
|
, pycryptodome
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "solc-select";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.0.2";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-zrpWHQdoCVDGaDGDf9fWhnRsTe1GVwqk1qls1PyvlLw=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
pycryptodome
|
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "solc_select" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage and switch between Solidity compiler versions";
|
|
|
|
homepage = "https://github.com/crytic/solc-select";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ arturcygan ];
|
|
|
|
};
|
|
|
|
}
|