1{ lib 2, buildPythonPackage 3, fetchPypi 4, morphys 5, pytestCheckHook 6, python-baseconv 7, pythonOlder 8, six 9}: 10buildPythonPackage rec { 11 pname = "py-multibase"; 12 version = "1.0.3"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-0oog78u2Huwo9VgnoL8ynHzqgP/9kzrsrqauhDEmf+Q="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.cfg \ 24 --replace "[pytest]" "" \ 25 --replace "python_classes = *TestCase" "" 26 substituteInPlace setup.py \ 27 --replace "'pytest-runner'," "" 28 ''; 29 30 propagatedBuildInputs = [ 31 morphys 32 python-baseconv 33 six 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "multibase" 42 ]; 43 44 meta = with lib; { 45 description = "Module for distinguishing base encodings and other simple string encodings"; 46 homepage = "https://github.com/multiformats/py-multibase"; 47 changelog = "https://github.com/multiformats/py-multibase/blob/v${version}/HISTORY.rst"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ rakesh4g ]; 50 }; 51}