Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, nix-update-script, overrides, setuptools-scm, pytestCheckHook, pydantic, pyyaml,}:
buildPythonPackage rec { pname = "craft-grammar"; version = "2.0.3";
pyproject = true;
src = fetchFromGitHub { owner = "canonical"; repo = "craft-grammar"; tag = version; hash = "sha256-d7U4AAUikYcz26ZSXQwkTobSKN1PpaL20enfggHSKRM="; };
build-system = [ setuptools-scm ];
dependencies = [ overrides pydantic ];
pythonImportsCheck = [ "craft_grammar" ];
nativeCheckInputs = [ pytestCheckHook pyyaml ];
enabledTestPaths = [ "tests/unit" ];
# Temp fix for test incompatibility with Python 3.13 disabledTests = [ "test_grammar_strlist_error[value2]" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Advanced grammar for Canonical's craft-parts library"; homepage = "https://github.com/canonical/craft-grammar"; changelog = "https://github.com/canonical/craft-grammar/releases/tag/${version}"; license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ jnsgruk ]; platforms = lib.platforms.linux; };}