nixpkgs/pkgs/development/python-modules/py-radix/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

32 lines
723 B
Nix

{ lib
, buildPythonPackage
, pythonAtLeast
, fetchFromGitHub
, coverage
, nose
}:
buildPythonPackage rec {
pname = "py-radix";
version = "0.10.0";
disabled = pythonAtLeast "3.10"; # abandoned, remove when we move to py310/py311
src = fetchFromGitHub {
owner = "mjschultz";
repo = "py-radix";
rev = "v${version}";
sha256 = "01xyn9lg6laavnzczf5bck1l1c2718ihxx0hvdkclnnxjqhbrqis";
};
doCheck = true;
nativeCheckInputs = [ coverage nose ];
meta = with lib; {
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 ];
};
}