1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6}:
7
8buildPythonPackage rec {
9 pname = "pure-pcapy3";
10 version = "1.0.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-uZ5F8W1K1BDrXrvH1dOeNT1+2n6G8K1S5NxcRaez6pI=";
18 };
19
20 # fixes: AttributeError: 'FixupTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
21 postPatch = ''
22 substituteInPlace test/__init__.py \
23 --replace-fail "assertEquals" "assertEqual"
24 '';
25
26 pythonImportsCheck = [ "pure_pcapy" ];
27
28 meta = with lib; {
29 description = "Reimplementation of pcapy";
30 homepage = "https://github.com/rcloran/pure-pcapy-3";
31 license = licenses.bsd2;
32 maintainers = [ ];
33 };
34}