diff --git a/pkgs/development/python-modules/srptools/default.nix b/pkgs/development/python-modules/srptools/default.nix index 75435ca5a45a..9c80f4dbc90b 100644 --- a/pkgs/development/python-modules/srptools/default.nix +++ b/pkgs/development/python-modules/srptools/default.nix @@ -1,21 +1,39 @@ -{ lib, buildPythonPackage, fetchPypi, six, pytest, pytest-runner }: +{ lib +, buildPythonPackage +, fetchPypi +, six +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "srptools"; version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "7fa4337256a1542e8f5bb4bed19e1d9aea98fe5ff9baf76693342a1dd6ac7c96"; + hash = "sha256-f6QzclahVC6PW7S+0Z4dmuqY/l/5uvdmkzQqHdasfJY="; }; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + six + ]; - nativeCheckInputs = [ pytest pytest-runner ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "srptools" + ]; meta = with lib; { - description = "Python-Tools to implement Secure Remote Password (SRP) authentication"; + description = "Module to implement Secure Remote Password (SRP) authentication"; homepage = "https://github.com/idlesign/srptools"; + changelog = "https://github.com/idlesign/srptools/blob/v${version}/CHANGELOG"; license = licenses.bsd3; maintainers = with maintainers; [ ]; };