lol

Merge pull request #237074 from fabaff/bacpypes-pytest-runner

python311Packages.bacpypes: remove pytest-runner

authored by

Pascal Bach and committed by
GitHub
1c953475 dc6e5128

+30 -9
+30 -9
pkgs/development/python-modules/bacpypes/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub 2 - , wheel, pytestCheckHook, pytest-runner, pythonAtLeast }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , wheel 5 + , pytestCheckHook 6 + , pythonOlder 7 + }: 3 8 4 9 buildPythonPackage rec { 5 - version = "0.18.6"; 6 10 pname = "bacpypes"; 7 - disabled = pythonAtLeast "3.9"; 11 + version = "0.18.6"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.9"; 8 15 9 16 src = fetchFromGitHub { 10 17 owner = "JoelBender"; ··· 13 20 hash = "sha256-BHCHI36nTqBj2dkHB/Y5qkC4uJCmzbHGzSFWKNsIdbc="; 14 21 }; 15 22 16 - propagatedBuildInputs = [ wheel ]; 23 + postPatch = '' 24 + substituteInPlace setup.py \ 25 + --replace "'pytest-runner'," "" \ 26 + --replace "(3, 8): 'py34'," "(3, 8): 'py34', (3, 9): 'py34', (3, 10): 'py34', (3, 11): 'py34', (3, 12): 'py34'," 27 + ''; 17 28 18 - # Using pytes instead of setuptools check hook allows disabling specific tests 19 - nativeCheckInputs = [ pytestCheckHook pytest-runner ]; 20 - dontUseSetuptoolsCheck = true; 29 + propagatedBuildInputs = [ 30 + wheel 31 + ]; 32 + 33 + nativeCheckInputs = [ 34 + pytestCheckHook 35 + ]; 36 + 21 37 disabledTests = [ 22 38 # Test fails with a an error: AssertionError: assert 30 == 31 23 39 "test_recurring_task_5" 24 40 ]; 25 41 42 + pythonImportsCheck = [ 43 + "bacpypes" 44 + ]; 45 + 26 46 meta = with lib; { 47 + description = "Module for the BACnet application layer and network layer"; 27 48 homepage = "https://github.com/JoelBender/bacpypes"; 28 - description = "BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces."; 49 + changelog = "https://github.com/JoelBender/bacpypes/releases/tag/v${version}"; 29 50 license = licenses.mit; 30 51 maintainers = with maintainers; [ bachp ]; 31 52 };