2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-radix-sr";
|
|
|
|
version = "1.0.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SEKOIA-IO";
|
|
|
|
repo = "py-radix";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-aHV+NvPR4Gyk6bEpCftgBylis9rU7BWLpBMatjP4QmE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "name='py-radix'" "name='py-radix-sr'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "radix" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python radix tree for IPv4 and IPv6 prefix matching";
|
|
|
|
homepage = "https://github.com/SEKOIA-IO/py-radix";
|
|
|
|
license = with licenses; [ isc bsdOriginal ];
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = teams.wdz.members;
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
}
|