nixpkgs/pkgs/development/python-modules/manifestoo-core/default.nix
2023-11-06 18:13:06 +00:00

40 lines
902 B
Nix

{ buildPythonPackage
, typing-extensions
, fetchPypi
, lib
, nix-update-script
, hatch-vcs
, pythonOlder
, importlib-resources
}:
buildPythonPackage rec {
pname = "manifestoo-core";
version = "1.3";
format = "pyproject";
src = fetchPypi {
inherit version;
pname = "manifestoo_core";
hash = "sha256-psgUg55NiyONo3ob4UIMrO793UrxGMZV73hj4HRCR8E=";
};
nativeBuildInputs = [
hatch-vcs
];
propagatedBuildInputs =
lib.optionals (pythonOlder "3.7") [ importlib-resources ]
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A library to reason about Odoo addons manifests";
homepage = "https://github.com/acsone/manifestoo-core";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ yajo ];
};
}