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