python310Packages.srp: disable on older Python releases

- Add description
- Add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-04-06 12:44:38 +02:00 committed by GitHub
parent 967eb265e4
commit 0d79899aaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,35 @@
{ buildPythonPackage, fetchPypi, six, lib }:
{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
}:
buildPythonPackage rec {
pname = "srp";
version = "1.0.19";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-SOZT6MP1kJCbpAcwbrLoRgosfR+GxWvOWc9Cr1T/XSo=";
hash = "sha256-SOZT6MP1kJCbpAcwbrLoRgosfR+GxWvOWc9Cr1T/XSo=";
};
propagatedBuildInputs = [ six ];
propagatedBuildInputs = [
six
];
# Tests ends up with libssl.so cannot load shared
doCheck = false;
pythonImportsCheck = [
"srp"
];
meta = with lib; {
description = "Implementation of the Secure Remote Password protocol (SRP)";
longDescription = ''
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.