lol

python311Packages.srptools: remove pytest-runner

- switch to pytestCheckHook
- add format
- add changelog to meta
- add pythonImportsCheck
- diable on unsupported Python releases

+23 -5
+23 -5
pkgs/development/python-modules/srptools/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, six, pytest, pytest-runner }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , six 5 + , pytestCheckHook 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "srptools"; 5 11 version = "1.0.1"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 6 15 7 16 src = fetchPypi { 8 17 inherit pname version; 9 - sha256 = "7fa4337256a1542e8f5bb4bed19e1d9aea98fe5ff9baf76693342a1dd6ac7c96"; 18 + hash = "sha256-f6QzclahVC6PW7S+0Z4dmuqY/l/5uvdmkzQqHdasfJY="; 10 19 }; 11 20 12 - propagatedBuildInputs = [ six ]; 21 + propagatedBuildInputs = [ 22 + six 23 + ]; 13 24 14 - nativeCheckInputs = [ pytest pytest-runner ]; 25 + nativeCheckInputs = [ 26 + pytestCheckHook 27 + ]; 28 + 29 + pythonImportsCheck = [ 30 + "srptools" 31 + ]; 15 32 16 33 meta = with lib; { 17 - description = "Python-Tools to implement Secure Remote Password (SRP) authentication"; 34 + description = "Module to implement Secure Remote Password (SRP) authentication"; 18 35 homepage = "https://github.com/idlesign/srptools"; 36 + changelog = "https://github.com/idlesign/srptools/blob/v${version}/CHANGELOG"; 19 37 license = licenses.bsd3; 20 38 maintainers = with maintainers; [ ]; 21 39 };