Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
astunparse,
|
|
buildPythonPackage,
|
|
distutils,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
torch,
|
|
torchvision,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fickling";
|
|
version = "0.1.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trailofbits";
|
|
repo = "fickling";
|
|
tag = "v${version}";
|
|
hash = "sha256-/cV1XhJ8KMFby9nZ/qXEYxf+P6352Q2DZOLuvebyuHQ=";
|
|
};
|
|
|
|
build-system = [
|
|
distutils
|
|
flit-core
|
|
];
|
|
|
|
dependencies = [ astunparse ];
|
|
|
|
optional-dependencies = {
|
|
torch = [
|
|
torch
|
|
torchvision
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "fickling" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python pickling decompiler and static analyzer";
|
|
homepage = "https://github.com/trailofbits/fickling";
|
|
changelog = "https://github.com/trailofbits/fickling/releases/tag/v${version}";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|