python3Packages.craft-grammar: init at 1.1.2

This commit is contained in:
Jon Seager 2024-03-13 16:35:59 +00:00
parent 3582633bbb
commit c64a4b4425
No known key found for this signature in database
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,58 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, nix-update-script
, overrides
, setuptools
, pytest-check
, pytest-mock
, pytestCheckHook
, pydantic_1
, pyyaml
}:
buildPythonPackage rec {
pname = "craft-grammar";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "canonical";
repo = "craft-grammar";
rev = "refs/tags/${version}";
hash = "sha256-23KLIO2yHXGe/zb3B8LirJsh+LY9z0c5ZGtF392Kszo";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
overrides
];
pythonImportsCheck = [
"craft_grammar"
];
nativeCheckInputs = [
pydantic_1
pytestCheckHook
pyyaml
];
pytestFlagsArray = [ "tests/unit" ];
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;
};
}

View File

@ -2447,6 +2447,8 @@ self: super: with self; {
cpyparsing = callPackage ../development/python-modules/cpyparsing { };
craft-grammar = callPackage ../development/python-modules/craft-grammar { };
craft-parts = callPackage ../development/python-modules/craft-parts { };
craft-providers = callPackage ../development/python-modules/craft-providers { };