Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / craft-grammar / default.nix
blob61a07f4d7c0692de71b397507bd58a70042b75a0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , nix-update-script
5 , overrides
6 , setuptools
7 , pytest-check
8 , pytest-mock
9 , pytestCheckHook
10 , pydantic_1
11 , pyyaml
14 buildPythonPackage rec {
15   pname = "craft-grammar";
16   version = "1.2.0";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "canonical";
22     repo = "craft-grammar";
23     rev = "refs/tags/${version}";
24     hash = "sha256-YQpxgdmUxYLkhAXDLlkLAK6VpjIEycLFY3nsE/M4o2g=";
25   };
27   nativeBuildInputs = [
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     overrides
33   ];
35   pythonImportsCheck = [
36     "craft_grammar"
37   ];
39   nativeCheckInputs = [
40     pydantic_1
41     pytestCheckHook
42     pyyaml
43   ];
45   pytestFlagsArray = [ "tests/unit" ];
47   passthru.updateScript = nix-update-script { };
49   meta = {
50     description = "Advanced grammar for Canonical's craft-parts library";
51     homepage = "https://github.com/canonical/craft-grammar";
52     changelog = "https://github.com/canonical/craft-grammar/releases/tag/${version}";
53     license = lib.licenses.lgpl3Only;
54     maintainers = with lib.maintainers; [ jnsgruk ];
55     platforms = lib.platforms.linux;
56   };