Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 50 lines 1.1 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.1"; 16 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "canonical"; 21 repo = "craft-grammar"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-xex+7rCXqRegnws470VtVltM49fx7fSHzWDZawRmOdM="; 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 passthru.updateScript = nix-update-script { }; 41 42 meta = { 43 description = "Advanced grammar for Canonical's craft-parts library"; 44 homepage = "https://github.com/canonical/craft-grammar"; 45 changelog = "https://github.com/canonical/craft-grammar/releases/tag/${version}"; 46 license = lib.licenses.lgpl3Only; 47 maintainers = with lib.maintainers; [ jnsgruk ]; 48 platforms = lib.platforms.linux; 49 }; 50}