Merge Paperwork update to version 1.2.4 (#46487)
Thanks to @symphorien for this work, which apart from the update itself includes a few more fixes and cleanups. I've tested building and running the upgraded Paperwork and while I haven't done extensive testing on every little feature it seems to work so far. The changes also include an addition to fetchFromGitLab, which allows to specify a group. Merges: #46487
This commit is contained in:
@@ -288,13 +288,13 @@ with pkgs;
|
||||
|
||||
# gitlab example
|
||||
fetchFromGitLab = {
|
||||
owner, repo, rev, domain ? "gitlab.com", name ? "source",
|
||||
owner, repo, rev, domain ? "gitlab.com", name ? "source", group ? null,
|
||||
... # For hash agility
|
||||
}@args: fetchzip ({
|
||||
inherit name;
|
||||
url = "https://${domain}/api/v4/projects/${owner}%2F${repo}/repository/archive.tar.gz?sha=${rev}";
|
||||
meta.homepage = "https://${domain}/${owner}/${repo}/";
|
||||
} // removeAttrs args [ "domain" "owner" "repo" "rev" ]) // { inherit rev; };
|
||||
url = "https://${domain}/api/v4/projects/${lib.optionalString (group != null) group+"%2F"}${owner}%2F${repo}/repository/archive.tar.gz?sha=${rev}";
|
||||
meta.homepage = "https://${domain}/${lib.optionalString (group != null) group+"/"}${owner}/${repo}/";
|
||||
} // removeAttrs args [ "domain" "owner" "group" "repo" "rev" ]) // { inherit rev; };
|
||||
|
||||
# gitweb example, snapshot support is optional in gitweb
|
||||
fetchFromRepoOrCz = {
|
||||
|
||||
@@ -3869,35 +3869,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
pypillowfight = buildPythonPackage rec {
|
||||
name = "pypillowfight-${version}";
|
||||
version = "0.2.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jflesch";
|
||||
repo = "libpillowfight";
|
||||
rev = version;
|
||||
sha256 = "1rwmajsy9qhl3qhhy5mw0xmr3n8abxcq8baidpn0sxv6yjg2369z";
|
||||
};
|
||||
|
||||
# Disable tests because they're designed to only work on Debian:
|
||||
# https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
|
||||
doCheck = false;
|
||||
|
||||
# Python 2.x is not supported, see:
|
||||
# https://github.com/jflesch/libpillowfight/issues/1
|
||||
disabled = !isPy3k && !isPyPy;
|
||||
|
||||
# This is needed by setup.py regardless of whether tests are enabled.
|
||||
buildInputs = [ self.nose ];
|
||||
propagatedBuildInputs = [ self.pillow ];
|
||||
|
||||
meta = {
|
||||
description = "Library containing various image processing algorithms";
|
||||
homepage = "https://github.com/jflesch/libpillowfight";
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
};
|
||||
pypillowfight = callPackage ../development/python-modules/pypillowfight { };
|
||||
|
||||
pyprind = callPackage ../development/python-modules/pyprind { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user