Files
nixpkgs/pkgs/development/python-modules/crytic-compile/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cbor2,
fetchFromGitHub,
pycryptodome,
pythonOlder,
setuptools,
solc-select,
toml,
}:
buildPythonPackage rec {
pname = "crytic-compile";
version = "0.3.11";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "crytic";
repo = "crytic-compile";
tag = version;
hash = "sha256-NVAIVUfh1bizg/HG1z7Ze6o5w6wto744Ogq0LPg0gXg=";
};
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 = {
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/${src.tag}";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [
arturcygan
hellwolf
];
};
}