Merge pull request #268488 from a-n-n-a-l-e-e/pkg-about
This commit is contained in:
commit
85a141849f
@ -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}
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user