1{ lib
2, buildPythonPackage
3, pythonAtLeast
4, fetchFromGitHub
5, coverage
6, nose
7}:
8
9buildPythonPackage rec {
10 pname = "py-radix";
11 version = "0.10.0";
12
13 disabled = pythonAtLeast "3.10"; # abandoned, remove when we move to py310/py311
14
15 src = fetchFromGitHub {
16 owner = "mjschultz";
17 repo = "py-radix";
18 rev = "v${version}";
19 sha256 = "01xyn9lg6laavnzczf5bck1l1c2718ihxx0hvdkclnnxjqhbrqis";
20 };
21
22 doCheck = true;
23 nativeCheckInputs = [ coverage nose ];
24
25 meta = with lib; {
26 description = "Python radix tree for IPv4 and IPv6 prefix matching";
27 homepage = "https://github.com/mjschultz/py-radix";
28 license = with licenses; [ isc bsdOriginal ];
29 maintainers = with maintainers; [ mkg ];
30 };
31}