1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 hatch-vcs, 5 hatchling, 6 lib, 7 manifestoo-core, 8 pythonOlder, 9 tomli, 10}: 11buildPythonPackage rec { 12 pname = "hatch-odoo"; 13 version = "1.0.2"; 14 format = "pyproject"; 15 16 src = fetchFromGitHub { 17 owner = "acsone"; 18 repo = "hatch-odoo"; 19 tag = version; 20 sha256 = "sha256-I3jaiG0Xu8B34q30p7zTs+FeBXUQiPKTAJLSVxE9gYE="; 21 }; 22 23 buildInputs = [ hatch-vcs ]; 24 25 propagatedBuildInputs = [ 26 hatchling 27 manifestoo-core 28 ] 29 ++ lib.optionals (pythonOlder "3.11") [ 30 tomli 31 ]; 32 33 meta = with lib; { 34 description = "Hatch plugin to develop and package Odoo projects"; 35 homepage = "https://github.com/acsone/hatch-odoo"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ yajo ]; 38 }; 39}