nixpkgs/pkgs/development/python-modules/scramp/default.nix

41 lines
748 B
Nix
Raw Normal View History

2021-03-06 22:14:12 +00:00
{ lib
, asn1crypto
, buildPythonPackage
, fetchFromGitHub
2021-08-30 16:57:03 +00:00
, pytest-mock
2021-03-06 22:14:12 +00:00
, pytestCheckHook
2021-08-30 16:57:03 +00:00
, pythonOlder
2021-03-06 22:14:12 +00:00
}:
2020-11-06 05:10:04 +00:00
buildPythonPackage rec {
pname = "scramp";
2021-08-30 16:57:03 +00:00
version = "1.4.1";
disabled = pythonOlder "3.6";
2020-11-06 05:10:04 +00:00
src = fetchFromGitHub {
owner = "tlocke";
repo = "scramp";
rev = version;
2021-08-30 16:57:03 +00:00
sha256 = "sha256-HEt2QxNHX9Oqx+o0++ZtS61SVHra3nLAqv7NbQWVV+E=";
2020-11-06 05:10:04 +00:00
};
2021-08-30 16:57:03 +00:00
propagatedBuildInputs = [
asn1crypto
];
2021-03-06 22:14:12 +00:00
2021-08-30 16:57:03 +00:00
checkInputs = [
pytest-mock
pytestCheckHook
];
2020-11-06 05:10:04 +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 ];
};
}