2021-03-06 22:14:12 +00:00
|
|
|
{ lib
|
|
|
|
, asn1crypto
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-11-06 05:10:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scramp";
|
2021-03-29 19:34:32 +00:00
|
|
|
version = "1.4.0";
|
2020-11-06 05:10:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlocke";
|
|
|
|
repo = "scramp";
|
|
|
|
rev = version;
|
2021-03-29 19:34:32 +00:00
|
|
|
sha256 = "sha256-aXuRIW/3qBzan8z3EzSSxqaZfa3WnPhlviNa2ugIjik=";
|
2020-11-06 05:10:04 +00:00
|
|
|
};
|
|
|
|
|
2021-03-06 22:14:12 +00:00
|
|
|
propagatedBuildInputs = [ asn1crypto ];
|
|
|
|
|
2020-11-06 05:10:04 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "scramp" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Implementation of the SCRAM authentication protocol";
|
|
|
|
homepage = "https://github.com/tlocke/scramp";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|