lol

python3Packages.ripe-atlas-sagan: add optional dependency

authored by

Fabian Affolter and committed by
GitHub
19c81496 6f1e8c31

+21 -8
+21 -8
pkgs/development/python-modules/ripe-atlas-sagan/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , python-dateutil 4 - , pytz 5 , cryptography 6 - , pytest 7 , pytestCheckHook 8 - , fetchFromGitHub 9 }: 10 11 buildPythonPackage rec { 12 pname = "ripe-atlas-sagan"; 13 version = "1.3.1"; 14 15 src = fetchFromGitHub { 16 owner = "RIPE-NCC"; 17 repo = pname; 18 rev = "v${version}"; 19 - sha256 = "sha256-xIBIKsQvDmVBa/C8/7Wr3WKeepHaGhoXlgatXSUtWLA="; 20 }; 21 22 propagatedBuildInputs = [ 23 python-dateutil 24 pytz 25 - cryptography 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 - pytestFlagsArray = [ "tests/*.py" ]; 33 34 disabledTests = [ 35 - "test_invalid_country_code" # This test fail for unknown reason, I suspect it to be flaky. 36 ]; 37 38 pythonImportsCheck = [
··· 1 { lib 2 , buildPythonPackage 3 , cryptography 4 + , fetchFromGitHub 5 , pytestCheckHook 6 + , python-dateutil 7 + , pythonOlder 8 + , pytz 9 + , ujson 10 }: 11 12 buildPythonPackage 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 checkInputs = [ 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 = [