1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "srp";
10 version = "1.0.20";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-LbRTvc4mue6tNnp7V4MHTvgOhIK/MMAUCnuJg2oFRwc=";
18 };
19
20 propagatedBuildInputs = [
21 six
22 ];
23
24 # Tests ends up with libssl.so cannot load shared
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "srp"
29 ];
30
31 meta = with lib; {
32 description = "Implementation of the Secure Remote Password protocol (SRP)";
33 longDescription = ''
34 This package provides an implementation of the Secure Remote Password protocol (SRP).
35 SRP is a cryptographically strong authentication protocol for password-based, mutual authentication over an insecure network connection.
36 '';
37 homepage = "https://github.com/cocagne/pysrp";
38 license = licenses.mit;
39 maintainers = with maintainers; [ jefflabonte ];
40 };
41}