1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 pytestCheckHook, 8 syrupy, 9}: 10 11buildPythonPackage rec { 12 pname = "systembridgemodels"; 13 version = "5.1.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.11"; 17 18 src = fetchFromGitHub { 19 owner = "timmo001"; 20 repo = "system-bridge-models"; 21 tag = version; 22 hash = "sha256-Yh16la+3zk+igdMyHov4rf2M1yAT3JYYe/0IYu/SmVY="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace-fail ".dev0" "" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 pythonImportsCheck = [ "systembridgemodels" ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 syrupy 37 ]; 38 39 disabledTests = [ 40 "test_system" 41 "test_update" 42 ]; 43 44 disabledTestPaths = [ 45 # https://github.com/timmo001/system-bridge-models/commit/9523179e73b6a13b9987fa861d77bfeeb88203a7 46 "tests/test_update.py" 47 "tests/test_version.py" 48 ]; 49 50 pytestFlags = [ "--snapshot-warn-unused" ]; 51 52 meta = { 53 changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}"; 54 description = "This is the models package used by the System Bridge project"; 55 homepage = "https://github.com/timmo001/system-bridge-models"; 56 license = lib.licenses.asl20; 57 maintainers = with lib.maintainers; [ dotlambda ]; 58 }; 59}