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