Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 55 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 nix-update-script, 6 overrides, 7 setuptools-scm, 8 pytestCheckHook, 9 pydantic, 10 pyyaml, 11}: 12 13buildPythonPackage rec { 14 pname = "craft-grammar"; 15 version = "2.0.3"; 16 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "canonical"; 21 repo = "craft-grammar"; 22 tag = version; 23 hash = "sha256-d7U4AAUikYcz26ZSXQwkTobSKN1PpaL20enfggHSKRM="; 24 }; 25 26 build-system = [ setuptools-scm ]; 27 28 dependencies = [ overrides ]; 29 30 pythonImportsCheck = [ "craft_grammar" ]; 31 32 nativeCheckInputs = [ 33 pydantic 34 pytestCheckHook 35 pyyaml 36 ]; 37 38 pytestFlagsArray = [ "tests/unit" ]; 39 40 # Temp fix for test incompatibility with Python 3.13 41 disabledTests = [ 42 "test_grammar_strlist_error[value2]" 43 ]; 44 45 passthru.updateScript = nix-update-script { }; 46 47 meta = { 48 description = "Advanced grammar for Canonical's craft-parts library"; 49 homepage = "https://github.com/canonical/craft-grammar"; 50 changelog = "https://github.com/canonical/craft-grammar/releases/tag/${version}"; 51 license = lib.licenses.lgpl3Only; 52 maintainers = with lib.maintainers; [ jnsgruk ]; 53 platforms = lib.platforms.linux; 54 }; 55}