Merge pull request #236704 from fabaff/py-multicodec-pytest-runner

python311Packages.py-multicodec: remove pytest-runner

authored by Fabian Affolter and committed by GitHub 0fd7e6d4 6be5a971

+14 -12
+14 -12
pkgs/development/python-modules/py-multicodec/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , pytest-runner 4 + , morphys 5 5 , pytestCheckHook 6 6 , pythonOlder 7 - , morphys 8 7 , six 9 8 , varint 10 9 }: ··· 12 11 buildPythonPackage rec { 13 12 pname = "py-multicodec"; 14 13 version = "0.2.1"; 15 - disabled = pythonOlder "3.5"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 16 17 17 18 src = fetchFromGitHub { 18 19 owner = "multiformats"; 19 20 repo = pname; 20 - rev = "v${version}"; 21 + rev = "refs/tags/v${version}"; 21 22 hash = "sha256-2aK+bfhqCMqSO+mtrHIfNQmQpQHpwd7yHseI/3O7Sp4="; 22 23 }; 23 24 24 25 # Error when not substituting: 25 26 # Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead. 26 27 postPatch = '' 27 - substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]" 28 + substituteInPlace setup.cfg \ 29 + --replace "[pytest]" "[tool:pytest]" 30 + substituteInPlace setup.py \ 31 + --replace "'pytest-runner'," "" 28 32 ''; 29 33 30 - nativeBuildInputs = [ 31 - pytest-runner 32 - ]; 33 - 34 34 propagatedBuildInputs = [ 35 + morphys 36 + six 35 37 varint 36 - six 37 - morphys 38 38 ]; 39 39 40 40 nativeCheckInputs = [ 41 41 pytestCheckHook 42 42 ]; 43 43 44 - pythonImportsCheck = [ "multicodec" ]; 44 + pythonImportsCheck = [ 45 + "multicodec" 46 + ]; 45 47 46 48 meta = with lib; { 47 49 description = "Compact self-describing codecs";