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
Some python libraries, mostly scrapying-related #60775
Conversation
buildPythonPackage { | ||
pname = "langdetect"; | ||
version = "1.0.7"; | ||
src = fetchzip { |
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.
fetchPyPi
Maybe you need to pass in a different pname
here?
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.
Maybe it's because there's only a zip?
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.
extension = "zip";
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.
worked
|
||
propagatedBuildInputs = [ requests retrying six ]; | ||
|
||
# Prevent unicode decoding error in setup.py |
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.
Should not be needed anymore...What's the exact issue?
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.
To be honest, I don't see it anymore either :/
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.
probably you wrote these expressions while using an older Nixpkgs (18.09)
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 think I did
# Tests are network-based | ||
doCheck = false; | ||
|
||
# Prevent unicode decoding error in setup.py |
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.
same
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.
To be honest, I don't see it anymore either :/
LC_ALL = "en_US.UTF-8"; | ||
|
||
# Tests are network-based | ||
doCheck = false; |
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.
They don't have tests scraping from localhost?
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.
Not sure, but this is not the scraping library. Rather, the library that manages the crawlers running in their cloud environment, like aws-cli, I'd say.
Anyway, I see lots of messages like this in the tests:
pool_timeout = None, release_conn = False, chunked = False, body_pos = None
response_kw = {'decode_content': False, 'preload_content': False}, conn = None
release_this_conn = True, err = None, clean_exit = False
timeout_obj = <urllib3.util.timeout.Timeout object at 0x7ffff537ab00>
is_new_proxy_conn = False
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.
Don't know what that is, probably just test-related.
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.
Well, I disabled the tests that give a problem. At least some are passing :)
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "shub"; |
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.
indentation
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.
Done
bb067d9
to
51cc66a
Compare
I think I covered the changes |
@FRidh do I have to do more changes? |
|
@c0bw3b done :) |
Testing on NixOS with sandboxing : Result of 3 package failed to build:
22 package were build:
Log excerpt for python27Packages.backports-datetime-fromisoformat (Py3 only?)
Log excerpt for python27Packages.enolib (Py3 only?)
|
Sorry, was away. |
No problem. |
Thank you for your contributions.
|
Needs a rebase if still relevant |
I don't really use these anymore, so I'll close the PR |
Motivation for this change
Some libraries I needed and were missing
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)