Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paperwork 1.2.4 #46487

Merged
merged 5 commits into from Sep 25, 2018
Merged

Paperwork 1.2.4 #46487

merged 5 commits into from Sep 25, 2018

Conversation

symphorien
Copy link
Member

@symphorien symphorien commented Sep 10, 2018

Motivation for this change

update (most of these updates could be made standalone. tell me if you want to split.)

Things done

The new home for paperwork is the gnome gitlab instance, but they have an unusual namespacing. Instead of the "traditional" owner/repo url, there are three levels: group/owner/repo: https://gitlab.gnome.org/World/OpenPaperwork/paperwork

I have adapted fetchFromGitLab to take an optional group argument.

I have checked that I can still scan/ocr succesfully with paperwork.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/) (just paperwork)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

cc @aszlig as maintainer.

Copy link
Member

@aszlig aszlig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the cleanups.

Given that the backend and frontend are now in one repositories it would probably make more sense to split out the source into a separate Nix expression file (eg. source.nix) and directly use src = "${source}/paperwork-backend"; so that we don't need to set the source root anymore.

} // 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; };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please split this into a separate commit?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks fetchFromGitLab.

Before:
https://gitlab.com/api/v4/projects/psmisc%2Fpsmisc/repository/archive.tar.gz?sha=v23.2
After:
https://gitlab.com/api/v4/projects/%2Fpsmisc%2Fpsmisc/repository/archive.tar.gz?sha=v23.2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azlig I'd like to revert this PR until this is resolved, okay?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryantm: Ah, this is just a grouping issue, going to fix that instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More context #46977 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 593062d.

@aszlig
Copy link
Member

aszlig commented Sep 13, 2018

Tested this also on NixOS, so I ticked off the checkboxes accordingly.

@symphorien: Can you please ping me again after you've split off the fetchFromGitLab?

@symphorien
Copy link
Member Author

@aszlig I just split the first commit as requested.
Regarding paperwork-src: the problem is that it does not belong either to nixpkgs top-level nor to pythonPackages. So I somewhat prefer the current situation. But if you prefer I can move the source to its own attribute.

@xeji xeji mentioned this pull request Sep 15, 2018
9 tasks
Mic92 pushed a commit to Mic92/nixpkgs that referenced this pull request Sep 25, 2018
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: NixOS#46487
@aszlig aszlig merged commit 46cd67e into NixOS:master Sep 25, 2018
@symphorien symphorien deleted the paperwork-0.2.4 branch May 18, 2019 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants