python311Packages.srptools: remove pytest-runner
- switch to pytestCheckHook - add format - add changelog to meta - add pythonImportsCheck - diable on unsupported Python releases
This commit is contained in:
parent
4c52672699
commit
15553ec202
1 changed files with 23 additions and 5 deletions
|
@ -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; [ ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue