diff --git a/pkgs/development/python-modules/pdfminer_six/default.nix b/pkgs/development/python-modules/pdfminer_six/default.nix index 96ba66869055..725fb9ab9f93 100644 --- a/pkgs/development/python-modules/pdfminer_six/default.nix +++ b/pkgs/development/python-modules/pdfminer_six/default.nix @@ -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