Unverified Commit 85a14184 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #268488 from a-n-n-a-l-e-e/pkg-about

parents 661c2571 ef5c4d73
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
, pkgsLibpcap
, pkg-about
, setuptools
, tox
}:

buildPythonPackage rec {
@@ -25,10 +24,12 @@ buildPythonPackage rec {

  nativeBuildInputs = [
    setuptools
    tox
  ];

  # tox is listed in build requirements but not actually used to build
  # keeping it as a requirement breaks the build unnecessarily
  postPatch = ''
    sed  -i "/requires/s/, 'tox>=3.25.1'//"  pyproject.toml
    cat <<EOF >src/libpcap/libpcap.cfg
    [libpcap]
    LIBPCAP = ${pkgsLibpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}
+6 −2
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
, setuptools
, packaging
, tomli
, tox
}:

buildPythonPackage rec {
@@ -24,10 +23,15 @@ buildPythonPackage rec {
    hash = "sha256-mb43XbKypgilagXLW33kP8wXxioNsfLtl6AEnOI1WlA=";
  };

  # tox is listed in build requirements but not actually used to build
  # keeping it as a requirement breaks the build unnecessarily
  postPatch = ''
    sed  -i "/requires/s/, 'tox>=3.25.1'//"  pyproject.toml
  '';

  nativeBuildInputs = [
    packaging
    setuptools
    tox
  ];

  propagatedBuildInputs = [