567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
858 B
Nix
38 lines
858 B
Nix
{
|
|
buildPythonPackage,
|
|
typing-extensions,
|
|
fetchPypi,
|
|
lib,
|
|
nix-update-script,
|
|
hatch-vcs,
|
|
pythonOlder,
|
|
importlib-resources,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "manifestoo-core";
|
|
version = "1.13";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "manifestoo_core";
|
|
hash = "sha256-mJDs0k1Ea9E616/V/M5bikyKYVg+BvdwsdVf6VmqSQU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatch-vcs ];
|
|
|
|
propagatedBuildInputs =
|
|
lib.optionals (pythonOlder "3.7") [ importlib-resources ]
|
|
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Library to reason about Odoo addons manifests";
|
|
homepage = "https://github.com/acsone/manifestoo-core";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ yajo ];
|
|
};
|
|
}
|