at master 677 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "arc4"; 11 version = "0.4.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "manicmaniac"; 18 repo = "arc4"; 19 rev = version; 20 hash = "sha256-DlZIygf5v3ZNY2XFmrKOA15ccMo3Rv0kf6hZJ0CskeQ="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "arc4" ]; 26 27 meta = with lib; { 28 description = "ARCFOUR (RC4) cipher implementation"; 29 homepage = "https://github.com/manicmaniac/arc4"; 30 license = with licenses; [ bsd3 ]; 31 maintainers = with maintainers; [ fab ]; 32 }; 33}