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 = pname;
19 tag = version;
20 sha256 = "sha256-I3jaiG0Xu8B34q30p7zTs+FeBXUQiPKTAJLSVxE9gYE=";
21 };
22
23 buildInputs = [ hatch-vcs ];
24
25 propagatedBuildInputs =
26 [
27 hatchling
28 manifestoo-core
29 ]
30 ++ lib.optionals (pythonOlder "3.11") [
31 tomli
32 ];
33
34 meta = with lib; {
35 description = "A hatch plugin to develop and package Odoo projects";
36 homepage = "https://github.com/acsone/hatch-odoo";
37 license = licenses.mit;
38 maintainers = with maintainers; [ yajo ];
39 };
40}