1{
2 buildPythonPackage,
3 click,
4 fetchPypi,
5 gitpython,
6 lib,
7 nix-update-script,
8 requests,
9 setuptools-scm,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "oca-port";
15 version = "0.15";
16 format = "pyproject";
17
18 src = fetchPypi {
19 inherit version;
20 pname = "oca_port";
21 hash = "sha256-DqoIzZj++XF2ZYECpLQX1RD97Y3I2uvs1OI7QyfB7dE=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [
30 click
31 gitpython
32 requests
33 ];
34
35 passthru.updateScript = nix-update-script { };
36
37 pythonImportsCheck = [ "oca_port" ];
38
39 meta = with lib; {
40 description = "Tool helping to port an addon or missing commits of an addon from one branch to another";
41 homepage = "https://github.com/OCA/oca-port";
42 license = licenses.lgpl3Plus;
43 maintainers = with maintainers; [ yajo ];
44 };
45}