-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pypcap: init at 1.1.6 #30226
pypcap: init at 1.1.6 #30226
Conversation
pkgs/top-level/python-packages.nix
Outdated
homepage = https://github.com/pynetwork/pypcap; | ||
description = "Simplified object-oriented Python wrapper for libpcap"; | ||
license = licenses.bsd3; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A maintainer must be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot this one. Should be fixed now.
pkgs/top-level/python-packages.nix
Outdated
@@ -17594,6 +17594,49 @@ in { | |||
}; | |||
}; | |||
|
|||
pypcap = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the header of this file. This expression shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I simply was overwhelmed by this 26k lines long file and ignored the head. Should be fixed now.
pkgs/top-level/python-packages.nix
Outdated
|
||
buildInputs = [ pkgs.libpcap ]; | ||
|
||
doCheck = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Include a comment.
496780e
to
e1cbcbe
Compare
@@ -0,0 +1,42 @@ | |||
{ stdenv, lib, buildPythonPackage, fetchPypi, isPy3k, pythonPackages, pkgs }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass in in individual dependencies, so dpkt
and libpcap
, instead of pythonPackages
and pkgs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback. I applied the requested changes.
3f9cef7
to
b543c94
Compare
@@ -0,0 +1,42 @@ | |||
{ stdenv, lib, pkgs, buildPythonPackage, fetchPypi, isPy3k, libpcap, dpkt }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkgs
is left
patches = [ | ||
# The default setup.py searchs for pcap.h in a static list of default | ||
# folders. So we have to add the path to libpcap in the nix-store. | ||
(pkgs.writeText "libpcap-path.patch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
I just wanted to ask if the last changes are fulfilling the expectations. Is this PR now able to be merged? |
@geistesk are the tests found and run? Does it build on the different interpreter versions? |
@FRidh The tests should succeed. Before adding the |
Now executes the tests; based on NixOS/nixpkgs#30226
Motivation for this change
This PR adds the python libpcap module.
Things done
build-use-sandbox
innix.conf
on non-NixOS)./result/bin/
)nix-shell -p nox --run "nox-review wip"