python3Packages.oca-port: fix dependencies and build from source

It now depends on giturlparse. Build was broken because of that.

I took the chance to update to newer build system, and build from source.
This commit is contained in:
Jairo Llopis 2025-05-26 18:02:48 +01:00
parent 72fd01a97d
commit 33c4a9b1a3
No known key found for this signature in database
GPG key ID: B24A1D10508180D8

View file

@ -1,33 +1,35 @@
{
buildPythonPackage,
click,
fetchPypi,
fetchFromGitHub,
gitpython,
giturlparse,
lib,
nix-update-script,
requests,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "oca-port";
version = "0.18";
format = "pyproject";
pyproject = true;
src = fetchPypi {
src = fetchFromGitHub {
inherit version;
pname = "oca_port";
hash = "sha256-JqSnt23SQSyh/7hKAy04k/ocpAN61qQ+VebQv5Ddbjk=";
owner = "OCA";
repo = "oca-port";
tag = "v${version}";
hash = "sha256-r32ePlbg0GjryB5HDx0nQTq71lG/o+4sUFRdKW/K5ys=";
};
nativeBuildInputs = [
setuptools
build-system = [
setuptools-scm
];
propagatedBuildInputs = [
dependencies = [
click
giturlparse
gitpython
requests
];
@ -36,10 +38,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "oca_port" ];
meta = with lib; {
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 = licenses.lgpl3Plus;
maintainers = with maintainers; [ yajo ];
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ yajo ];
};
}