1{ 2 buildPythonPackage, 3 fetchPypi, 4 hatch-vcs, 5 importlib-metadata, 6 lib, 7 manifestoo-core, 8 nix-update-script, 9 pytestCheckHook, 10 pythonOlder, 11 textual, 12 typer, 13 typing-extensions, 14}: 15 16buildPythonPackage rec { 17 pname = "manifestoo"; 18 version = "0.7"; 19 format = "pyproject"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE="; 24 }; 25 26 nativeBuildInputs = [ hatch-vcs ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 propagatedBuildInputs = 31 [ 32 manifestoo-core 33 textual 34 typer 35 ] 36 ++ typer.passthru.optional-dependencies.all 37 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 38 39 passthru.updateScript = nix-update-script { }; 40 41 meta = with lib; { 42 description = "A tool to reason about Odoo addons manifests"; 43 homepage = "https://github.com/acsone/manifestoo"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ yajo ]; 46 }; 47}