2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, asn1crypto
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytest-mock
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
2021-09-18 10:52:07 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scramp";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.4.1";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tlocke";
|
|
|
|
repo = "scramp";
|
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-HEt2QxNHX9Oqx+o0++ZtS61SVHra3nLAqv7NbQWVV+E=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|