at 23.11-beta 40 lines 902 B view raw
1{ buildPythonPackage 2, typing-extensions 3, fetchPypi 4, lib 5, nix-update-script 6, hatch-vcs 7, pythonOlder 8, importlib-resources 9}: 10 11buildPythonPackage rec { 12 pname = "manifestoo-core"; 13 version = "1.3"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit version; 18 pname = "manifestoo_core"; 19 hash = "sha256-psgUg55NiyONo3ob4UIMrO793UrxGMZV73hj4HRCR8E="; 20 }; 21 22 nativeBuildInputs = [ 23 hatch-vcs 24 ]; 25 26 propagatedBuildInputs = 27 lib.optionals (pythonOlder "3.7") [ importlib-resources ] 28 ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 passthru.updateScript = nix-update-script { }; 33 34 meta = with lib; { 35 description = "A library to reason about Odoo addons manifests"; 36 homepage = "https://github.com/acsone/manifestoo-core"; 37 license = licenses.lgpl3Only; 38 maintainers = with maintainers; [ yajo ]; 39 }; 40}