python311Packages.py-multibase: remove pytest-runner
- add changelog to meta - add pythonImportsCheck - add format - disable on unsupported Python releases
This commit is contained in:
parent
4c52672699
commit
3b1e90660e
1 changed files with 22 additions and 17 deletions
|
@ -1,45 +1,50 @@
|
|||
{ buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
, morphys
|
||||
, pytest
|
||||
, pytest-runner
|
||||
, pytestCheckHook
|
||||
, python-baseconv
|
||||
, pythonOlder
|
||||
, six
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "py-multibase";
|
||||
version = "1.0.3";
|
||||
disabled = isPy27;
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version ;
|
||||
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
|
||||
inherit pname version;
|
||||
hash = "sha256-0oog78u2Huwo9VgnoL8ynHzqgP/9kzrsrqauhDEmf+Q=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "[pytest]" ""
|
||||
substituteInPlace setup.cfg --replace "python_classes = *TestCase" ""
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "[pytest]" "" \
|
||||
--replace "python_classes = *TestCase" ""
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
morphys
|
||||
six
|
||||
python-baseconv
|
||||
six
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"multibase"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings";
|
||||
description = "Module for distinguishing base encodings and other simple string encodings";
|
||||
homepage = "https://github.com/multiformats/py-multibase";
|
||||
changelog = "https://github.com/multiformats/py-multibase/blob/v${version}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rakesh4g ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue