at master 54 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 pytestCheckHook, 7 python-dateutil, 8 pythonOlder, 9 pytz, 10 ujson, 11}: 12 13buildPythonPackage rec { 14 pname = "ripe-atlas-sagan"; 15 version = "1.3.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "RIPE-NCC"; 22 repo = "ripe-atlas-sagan"; 23 rev = "v${version}"; 24 hash = "sha256-xIBIKsQvDmVBa/C8/7Wr3WKeepHaGhoXlgatXSUtWLA="; 25 }; 26 27 propagatedBuildInputs = [ 28 cryptography 29 python-dateutil 30 pytz 31 ]; 32 33 optional-dependencies = { 34 fast = [ ujson ]; 35 }; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 enabledTestPaths = [ "tests/*.py" ]; 40 41 disabledTests = [ 42 # This test fail for unknown reason, I suspect it to be flaky. 43 "test_invalid_country_code" 44 ]; 45 46 pythonImportsCheck = [ "ripe.atlas.sagan" ]; 47 48 meta = with lib; { 49 description = "Parsing library for RIPE Atlas measurements results"; 50 homepage = "https://github.com/RIPE-NCC/ripe-atlas-sagan"; 51 license = licenses.gpl3Only; 52 maintainers = with maintainers; [ raitobezarius ]; 53 }; 54}