1{ lib 2, asn1crypto 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-mock 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "scramp"; 12 version = "1.4.1"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "tlocke"; 18 repo = "scramp"; 19 rev = version; 20 sha256 = "sha256-HEt2QxNHX9Oqx+o0++ZtS61SVHra3nLAqv7NbQWVV+E="; 21 }; 22 23 propagatedBuildInputs = [ 24 asn1crypto 25 ]; 26 27 checkInputs = [ 28 pytest-mock 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "scramp" ]; 33 34 meta = with lib; { 35 description = "Implementation of the SCRAM authentication protocol"; 36 homepage = "https://github.com/tlocke/scramp"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ jonringer ]; 39 }; 40}