summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/oca-port/default.nix
blob: 71194b3233c0de2d11254ef7811513495f494fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  buildPythonPackage,
  click,
  fetchFromGitHub,
  gitpython,
  giturlparse,
  lib,
  nix-update-script,
  requests,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "oca-port";
  version = "0.18";
  pyproject = true;

  src = fetchFromGitHub {
    inherit version;
    owner = "OCA";
    repo = "oca-port";
    tag = "v${version}";
    hash = "sha256-r32ePlbg0GjryB5HDx0nQTq71lG/o+4sUFRdKW/K5ys=";
  };

  build-system = [
    setuptools-scm
  ];

  dependencies = [
    click
    giturlparse
    gitpython
    requests
  ];

  passthru.updateScript = nix-update-script { };

  pythonImportsCheck = [ "oca_port" ];

  meta = {
    description = "Tool helping to port an addon or missing commits of an addon from one branch to another";
    homepage = "https://github.com/OCA/oca-port";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ yajo ];
  };
}