ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cbor2
|
|
, fetchFromGitHub
|
|
, pycryptodome
|
|
, pythonOlder
|
|
, setuptools
|
|
, solc-select
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "crytic-compile";
|
|
version = "0.3.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crytic";
|
|
repo = "crytic-compile";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-dQynnILHt6YO5qtvVVwcxRwtBJgokyfsQ5ubH15dkuA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cbor2
|
|
pycryptodome
|
|
setuptools
|
|
solc-select
|
|
toml
|
|
];
|
|
|
|
# Test require network access
|
|
doCheck = false;
|
|
|
|
# required for import check to work
|
|
# PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
|
|
env.HOME = "/tmp";
|
|
pythonImportsCheck = [
|
|
"crytic_compile"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Abstraction layer for smart contract build systems";
|
|
mainProgram = "crytic-compile";
|
|
homepage = "https://github.com/crytic/crytic-compile";
|
|
changelog = "https://github.com/crytic/crytic-compile/releases/tag/${version}";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ arturcygan hellwolf ];
|
|
};
|
|
}
|