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

add pdfrw and pagelabels #69637

Merged
merged 3 commits into from Apr 17, 2020
Merged

add pdfrw and pagelabels #69637

merged 3 commits into from Apr 17, 2020

Conversation

teto
Copy link
Member

@teto teto commented Sep 27, 2019

Motivation for this change

I want to package https://github.com/dsanson/termpdf.py (I have but there is an issue when importing fitz so termpdf.py update will be delayed until I fix it).

Things done
  • 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 nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

@teto
Copy link
Member Author

teto commented Sep 30, 2019

@GrahamcOfBorg build termpdfpy

@teto teto force-pushed the pagelabels branch 2 times, most recently from 3de3b06 to 357e136 Compare September 30, 2019 13:39
@teto
Copy link
Member Author

teto commented Sep 30, 2019

@GrahamcOfBorg build termpdfpy

@teto
Copy link
Member Author

teto commented Sep 30, 2019

@GrahamcOfBorg eval

@teto
Copy link
Member Author

teto commented Oct 11, 2019

you look a bit bored @jonringer, don't you ? don't worry I have thought about you and prepared this PR just in case :p

};

# no python3 support yet
doCheck = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

if the comment is true, then this should work

Suggested change
doCheck = false;
doCheck = isPy27;

Copy link
Member Author

Choose a reason for hiding this comment

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

turns out that there are even more errors with python2 so I just disabled for both as originally ( I had not tested python2 at the time)

Copy link
Contributor

Choose a reason for hiding this comment

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

there should be an attempt to run all the pure tests that you can. There will be some that you can't do in a sandbox environment, but we want to guarentee that the package wont break when your dependencies get bumped.

Copy link
Member Author

Choose a reason for hiding this comment

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

it requires additionnal pdfs https://github.com/pmaupin/pdfrw#6testing . I think it's fine to disable them. The decision can be revisited when and if the package breaks.

@jonringer
Copy link
Contributor

isPy27 needs to be added to the top of the file, and please squash the commits :)

@jonringer
Copy link
Contributor

@GrahamcOfBorg build python27Packages.pagelabels python27Packages.pdfrw python37Packages.pagelabels python37Packages.pdfrw termpdfpy

@jonringer
Copy link
Contributor

not sure if this intended behavior:

[nix-shell:~/.cache/nix-review/pr-69637]$ termpdf.py --help
Terminal does not support reporting screen sizes via the TIOCGWINSZ ioctl

@teto
Copy link
Member Author

teto commented Oct 11, 2019

It is, it only works with the kitty terminal for now but is pretty impressive nonetheless (can select and youank from a pdf in a terminal - if it's kitty)

pkgs/applications/misc/termpdf.py/default.nix Show resolved Hide resolved
pkgs/applications/misc/termpdf.py/default.nix Show resolved Hide resolved
};

# no python3 support yet
doCheck = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

there should be an attempt to run all the pure tests that you can. There will be some that you can't do in a sandbox environment, but we want to guarentee that the package wont break when your dependencies get bumped.

Used in termpdf I want to package.
This is a pdf reader for the terminal kitty.
@teto teto merged commit 839263d into NixOS:master Apr 17, 2020
@teto teto deleted the pagelabels branch September 5, 2021 00:59
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

2 participants