depot/third_party/nixpkgs/pkgs/development/python-modules/craft-grammar/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
overrides,
setuptools,
pytest-check,
pytest-mock,
pytestCheckHook,
pydantic_1,
pyyaml,
}:
buildPythonPackage rec {
pname = "craft-grammar";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "canonical";
repo = "craft-grammar";
rev = "refs/tags/${version}";
hash = "sha256-YQpxgdmUxYLkhAXDLlkLAK6VpjIEycLFY3nsE/M4o2g=";
};
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;
};
}