2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
packaging,
|
|
|
|
pycryptodome,
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "solc-select";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.0.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-23ud4AmvbeOlQWuAu+W21ja/MUcDwBYxm4wSMeJIpsc=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|