Merge pull request #236712 from fabaff/py-multibase-pytest-runner

python311Packages.py-multibase: remove pytest-runner

authored by Fabian Affolter and committed by GitHub d72e92bd c40a3dbb

+22 -17
+22 -17
pkgs/development/python-modules/py-multibase/default.nix
··· 1 - { buildPythonPackage 2 , fetchPypi 3 - , isPy27 4 - , lib 5 , morphys 6 - , pytest 7 - , pytest-runner 8 , python-baseconv 9 , six 10 }: 11 buildPythonPackage rec { 12 pname = "py-multibase"; 13 version = "1.0.3"; 14 - disabled = isPy27; 15 16 src = fetchPypi { 17 - inherit pname version ; 18 - sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4"; 19 }; 20 21 postPatch = '' 22 - substituteInPlace setup.cfg --replace "[pytest]" "" 23 - substituteInPlace setup.cfg --replace "python_classes = *TestCase" "" 24 ''; 25 26 - nativeBuildInputs = [ 27 - pytest-runner 28 - ]; 29 - 30 propagatedBuildInputs = [ 31 morphys 32 - six 33 python-baseconv 34 ]; 35 36 nativeCheckInputs = [ 37 - pytest 38 ]; 39 40 meta = with lib; { 41 - description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings"; 42 homepage = "https://github.com/multiformats/py-multibase"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ rakesh4g ]; 45 };
··· 1 + { lib 2 + , buildPythonPackage 3 , fetchPypi 4 , morphys 5 + , pytestCheckHook 6 , python-baseconv 7 + , pythonOlder 8 , six 9 }: 10 buildPythonPackage 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 };