mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
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:
parent
72fd01a97d
commit
33c4a9b1a3
1 changed files with 14 additions and 12 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue