pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / pure-pcapy3 / default.nix
blobd037fc7af5b854f9b952646b86086a46d00a820a
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6 }:
8 buildPythonPackage rec {
9   pname = "pure-pcapy3";
10   version = "1.0.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-uZ5F8W1K1BDrXrvH1dOeNT1+2n6G8K1S5NxcRaez6pI=";
18   };
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   '';
26   pythonImportsCheck = [ "pure_pcapy" ];
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   };