python3Packages.py-radix-sr: init at 1.0.0.post1
This commit is contained in:
parent
513dbe59be
commit
f7b797b4e7
34
pkgs/development/python-modules/py-radix-sr/default.nix
Normal file
34
pkgs/development/python-modules/py-radix-sr/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ 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 ];
|
||||||
|
maintainers = with maintainers; [ netali ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7226,6 +7226,8 @@ self: super: with self; {
|
||||||
|
|
||||||
py-expression-eval = callPackage ../development/python-modules/py-expression-eval { };
|
py-expression-eval = callPackage ../development/python-modules/py-expression-eval { };
|
||||||
|
|
||||||
|
py-radix-sr = callPackage ../development/python-modules/py-radix-sr { };
|
||||||
|
|
||||||
nwdiag = callPackage ../development/python-modules/nwdiag { };
|
nwdiag = callPackage ../development/python-modules/nwdiag { };
|
||||||
|
|
||||||
oasatelematics = callPackage ../development/python-modules/oasatelematics { };
|
oasatelematics = callPackage ../development/python-modules/oasatelematics { };
|
||||||
|
|
Loading…
Reference in a new issue