python39Packages.pdfminer: add symlinks without .py extension

required for diffoscope
This commit is contained in:
Sandro Jäckel 2021-10-23 00:14:20 +02:00
parent f918cedb26
commit 2070d83f07
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -6,7 +6,6 @@ buildPythonPackage rec {
disabled = !isPy3k;
# No tests in PyPi Tarball
src = fetchFromGitHub {
owner = "pdfminer";
repo = "pdfminer.six";
@ -16,6 +15,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ chardet cryptography sortedcontainers ];
postInstall = ''
for file in $out/bin/*.py; do
ln $file ''${file//.py/}
done
'';
checkInputs = [ nose ];
checkPhase = ''
nosetests