2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonAtLeast
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, coverage
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-radix";
|
|
|
|
version = "0.10.0";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonAtLeast "3.10"; # abandoned, remove when we move to py310/py311
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjschultz";
|
|
|
|
repo = "py-radix";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "01xyn9lg6laavnzczf5bck1l1c2718ihxx0hvdkclnnxjqhbrqis";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ coverage nose ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python radix tree for IPv4 and IPv6 prefix matching";
|
|
|
|
homepage = "https://github.com/mjschultz/py-radix";
|
|
|
|
license = with licenses; [ isc bsdOriginal ];
|
|
|
|
maintainers = with maintainers; [ mkg ];
|
|
|
|
};
|
|
|
|
}
|