depot/third_party/nixpkgs/pkgs/development/python-modules/manifestoo/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

51 lines
992 B
Nix

{ buildPythonPackage
, fetchPypi
, hatch-vcs
, importlib-metadata
, lib
, manifestoo-core
, nix-update-script
, pytestCheckHook
, pythonOlder
, textual
, typer
, typing-extensions
}:
buildPythonPackage rec {
pname = "manifestoo";
version = "0.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE=";
};
nativeBuildInputs = [
hatch-vcs
];
nativeCheckInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
manifestoo-core
textual
typer
]
++ typer.passthru.optional-dependencies.all
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A tool to reason about Odoo addons manifests";
homepage = "https://github.com/acsone/manifestoo";
license = licenses.mit;
maintainers = with maintainers; [ yajo ];
};
}