-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
pythonPackages.pydruid: init at 0.5.8 #80345
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,50 @@ | ||||||||||||||
| { lib | ||||||||||||||
| , buildPythonPackage | ||||||||||||||
| , fetchFromGitHub | ||||||||||||||
| , pandas | ||||||||||||||
| , prompt_toolkit | ||||||||||||||
| , pycurl | ||||||||||||||
| , pygments | ||||||||||||||
| , pytest | ||||||||||||||
| , pytestrunner | ||||||||||||||
| , requests | ||||||||||||||
| , six | ||||||||||||||
| , sqlalchemy | ||||||||||||||
| , tabulate | ||||||||||||||
| , tornado | ||||||||||||||
| }: | ||||||||||||||
|
|
||||||||||||||
| buildPythonPackage rec { | ||||||||||||||
| pname = "pydruid"; | ||||||||||||||
| version = "0.5.8"; | ||||||||||||||
|
|
||||||||||||||
| src = fetchFromGitHub { | ||||||||||||||
| owner = "druid-io"; | ||||||||||||||
| repo = pname; | ||||||||||||||
| rev = version; | ||||||||||||||
| sha256 = "0zb6zmklib26fzv5dvqzy0h0p1ljjgkklnjm66imc35mx5irpzcv"; | ||||||||||||||
| }; | ||||||||||||||
|
|
||||||||||||||
| patchPhase = '' | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. default patchPhase does a lot of things for you
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, I should change other commits, since I used patchPhase instead of postPatch. |
||||||||||||||
| # timestamp is added to the end of the list, and dict keeps keys in insertion order | ||||||||||||||
| substituteInPlace tests/test_query.py --replace \ | ||||||||||||||
| "def expected_results_csv_reader():" " | ||||||||||||||
| EXPECTED_RESULTS_PANDAS = list(map(lambda x: dict(list(x.items())[1:] + [list(x.items())[0]]), EXPECTED_RESULTS_PANDAS)) | ||||||||||||||
| def expected_results_csv_reader():" | ||||||||||||||
| ''; | ||||||||||||||
|
|
||||||||||||||
| propagatedBuildInputs = [ pandas prompt_toolkit pycurl pygments requests six sqlalchemy tabulate tornado ]; | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. really long, please list, please make into single item lines
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, is there a limit somewhere? (it fits to half screen for me so, below 120 characters - what is the standard max line width before wrapping?)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not really, but generally I do a max of ~3. Just helps with quickly digesting the expression |
||||||||||||||
|
|
||||||||||||||
| checkInputs = [ pytest pytestrunner ]; | ||||||||||||||
|
|
||||||||||||||
| checkPhase = '' | ||||||||||||||
| pytest tests | ||||||||||||||
| ''; | ||||||||||||||
|
|
||||||||||||||
| meta = with lib; { | ||||||||||||||
| description = "A Python connector for Druid"; | ||||||||||||||
| homepage = "https://github.com/druid-io/pydruid"; | ||||||||||||||
| license = licenses.asl20; | ||||||||||||||
| maintainers = [ maintainers.arnoldfarkas ]; | ||||||||||||||
| }; | ||||||||||||||
| } | ||||||||||||||
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.
avoid mass rebuild