2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
six,
|
|
|
|
pythonOlder,
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "srp";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "1.0.20";
|
2022-04-15 01:41:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-02 22:02:43 +00:00
|
|
|
hash = "sha256-LbRTvc4mue6tNnp7V4MHTvgOhIK/MMAUCnuJg2oFRwc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests ends up with libssl.so cannot load shared
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "srp" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-04-15 01:41:22 +00:00
|
|
|
description = "Implementation of the Secure Remote Password protocol (SRP)";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2024-06-05 15:53:02 +00:00
|
|
|
This package provides an implementation of the Secure Remote Password protocol (SRP).
|
|
|
|
SRP is a cryptographically strong authentication protocol for password-based, mutual authentication over an insecure network connection.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/cocagne/pysrp";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jefflabonte ];
|
|
|
|
};
|
|
|
|
}
|