nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 wheel, 6 pytestCheckHook, 7 pythonAtLeast, 8}: 9 10buildPythonPackage rec { 11 pname = "bacpypes"; 12 version = "0.18.6"; 13 format = "setuptools"; 14 15 # uses the removed asyncore module 16 disabled = pythonAtLeast "3.12"; 17 18 src = fetchFromGitHub { 19 owner = "JoelBender"; 20 repo = "bacpypes"; 21 tag = "v${version}"; 22 hash = "sha256-BHCHI36nTqBj2dkHB/Y5qkC4uJCmzbHGzSFWKNsIdbc="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "'pytest-runner'," "" \ 28 --replace "(3, 8): 'py34'," "(3, 8): 'py34', (3, 9): 'py34', (3, 10): 'py34', (3, 11): 'py34', (3, 12): 'py34'," 29 ''; 30 31 propagatedBuildInputs = [ wheel ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 # Test fails with a an error: AssertionError: assert 30 == 31 37 "test_recurring_task_5" 38 ]; 39 40 pythonImportsCheck = [ "bacpypes" ]; 41 42 meta = { 43 description = "Module for the BACnet application layer and network layer"; 44 homepage = "https://github.com/JoelBender/bacpypes"; 45 changelog = "https://github.com/JoelBender/bacpypes/releases/tag/v${version}"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ bachp ]; 48 }; 49}