1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 py-radix-sr, 7 pytestCheckHook, 8 mock, 9}: 10 11buildPythonPackage rec { 12 pname = "aggregate6"; 13 version = "1.0.12"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "job"; 18 repo = "aggregate6"; 19 rev = version; 20 hash = "sha256-tBo9LSmEu/0KPSeg17dlh7ngUvP9GyW6b01qqpr5Bx0="; 21 }; 22 23 patches = [ ./0001-setup-remove-nose-coverage.patch ]; 24 25 # py-radix-sr is a fork, with fixes 26 postPatch = '' 27 substituteInPlace setup.py --replace-fail 'py-radix==0.10.0' 'py-radix-sr' 28 ''; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ py-radix-sr ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 mock 37 ]; 38 39 pythonImportsCheck = [ "aggregate6" ]; 40 41 meta = { 42 description = "IPv4 and IPv6 prefix aggregation tool"; 43 mainProgram = "aggregate6"; 44 homepage = "https://github.com/job/aggregate6"; 45 license = with lib.licenses; [ bsd2 ]; 46 maintainers = with lib.maintainers; [ marcel ]; 47 teams = [ lib.teams.wdz ]; 48 }; 49}