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