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