diff --git a/pkgs/development/python-modules/fickling/default.nix b/pkgs/development/python-modules/fickling/default.nix index 88a2bab3ea95..287b4a0d1519 100644 --- a/pkgs/development/python-modules/fickling/default.nix +++ b/pkgs/development/python-modules/fickling/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonOlder, hatchling, numpy, pytestCheckHook, @@ -10,16 +11,16 @@ torchvision, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "fickling"; - version = "0.1.6"; + version = "0.1.7"; pyproject = true; src = fetchFromGitHub { owner = "trailofbits"; repo = "fickling"; - tag = "v${version}"; - hash = "sha256-p2XkHKqheVHqLTQKmUApiYH7NIaHc091B/TjiCDYWtA="; + tag = "v${finalAttrs.version}"; + hash = "sha256-uirVOJ6CI7gBu9lOoPtpjUZeBmIhBMI0tjSDI/ASy7w="; }; build-system = [ @@ -40,21 +41,21 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; + nativeCheckInputs = [ + pytestCheckHook + ] + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; - disabledTestPaths = [ - # https://github.com/trailofbits/fickling/issues/162 - # AttributeError: module 'numpy.lib.format' has no attribute... - "test/test_polyglot.py" - ]; + # Tests fail upstream in pytorch under python 3.14 + doCheck = pythonOlder "3.14"; pythonImportsCheck = [ "fickling" ]; meta = { description = "Python pickling decompiler and static analyzer"; homepage = "https://github.com/trailofbits/fickling"; - changelog = "https://github.com/trailofbits/fickling/releases/tag/${src.tag}"; + changelog = "https://github.com/trailofbits/fickling/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.lgpl3Plus; maintainers = with lib.maintainers; [ sarahec ]; }; -} +})