mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +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,
|
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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue