Commit 60dd20fc authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.viv-utils: adjust build-system

- add pythonImportsCheck
parent 6ba663bb
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -5,16 +5,21 @@
  funcy,
  intervaltree,
  pefile,
  typing-extensions,
  vivisect,
  pytest-sugar,
  pytestCheckHook,
  python-flirt,
  pythonOlder,
  setuptools-scm,
  typing-extensions,
  vivisect,
}:

buildPythonPackage rec {
  pname = "viv-utils";
  version = "0.7.11";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "williballenthin";
@@ -23,12 +28,9 @@ buildPythonPackage rec {
    hash = "sha256-zYamhG5oeoYYVLEvv1EdZ1buFDByZatuCxbl0uRhk6Y=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "==" ">="
  '';
  build-system = [ setuptools-scm ];

  propagatedBuildInputs = [
  dependencies = [
    funcy
    intervaltree
    pefile
@@ -47,6 +49,8 @@ buildPythonPackage rec {
    };
  };

  pythonImportsCheck = [ "viv_utils" ];

  meta = with lib; {
    description = "Utilities for working with vivisect";
    homepage = "https://github.com/williballenthin/viv-utils";