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
WIP pythonPackages.pypdftk: init at 0.4 #89941
Conversation
{ stdenv | ||
, buildPythonPackage | ||
, fetchPypi | ||
#, glibcLocales |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove that comment.
#LC_ALL = "en_US.UTF-8"; | ||
#buildInputs = [ glibcLocales ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this too.
# Tests broken on Python 3.x | ||
doCheck = !(isPy3k); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue upstream about this? Does pypdftk itself work with python 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to evaluate this for something today and used this expression as a base. I got pypdftk and the tests working in python 3, so I think these lines can be cut. There are a few leaps to getting the tests working from here, but I'm going to make a general comment on the issue with what I found so that it doesn't get hidden if/when this is marked resolved.
I wanted to evaluate pypdftk today so I gave this a try and spotted a few things. (It didn't ultimately appear to do what I needed, so I haven't given its functionality a good workout really).
I'm not sure that I've done everything correctly, either, but in case it helps move this forward, this is roughly where I ended up: { stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, pdftk
}:
buildPythonPackage rec {
pname = "pypdftk";
version = "unstable-2020-05-29";
# Using GH latest for now. Release 0.4 on pypi is:
# - missing test.py
# - tests were broken at this release anyways :P
src = fetchFromGitHub {
owner = "revolunet";
repo = pname;
rev = "6ddcc2efb083b6774265b7849bb5f48194fde11c";
sha256 = "1g7dly946hm9zbsrs0w7354a5z0gi0a5agsaimbl18lbszkbmhkv";
};
propagatedBuildInputs = [ pdftk ];
checkPhase = ''
PDFTK_PATH=${pdftk}/bin/pdftk ${python.interpreter} test.py
'';
meta = with stdenv.lib; {
description = "Python wrapper for PDFTK";
homepage = "https://github.com/revolunet/pypdftk";
license = licenses.bsd2;
maintainers = with maintainers; [ cap ];
};
} |
I marked this as stale due to inactivity. → More info |
Triage: still interested in this? |
Tentatively closing. Happy to reopen if anyone objects. |
Motivation for this change
Add a python wrapper for pdftk to fill out pdf forms easily.
Thinks I need help with
As this is my first python package I based this one on a copy of pypdf.
It is important to me that someone oversees this package and helps me to make it ready to merge.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)