Skip to content

pythonPackages.pydruid: init at 0.5.8#80345

Closed
arnoldfarkas wants to merge 2 commits intoNixOS:masterfrom
WorldQuant:wq_pydruid
Closed

pythonPackages.pydruid: init at 0.5.8#80345
arnoldfarkas wants to merge 2 commits intoNixOS:masterfrom
WorldQuant:wq_pydruid

Conversation

@arnoldfarkas
Copy link
Copy Markdown
Contributor

Motivation for this change

Packaging Python module 'pydruid' 0.5.8 in Nix, and a fix for unstable test in libuv (which is also submitted as a separate PR: #80341)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package labels Feb 17, 2020
@ofborg ofborg bot requested review from cstrahan and dotlambda February 17, 2020 10:00
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Feb 17, 2020
sha256 = "0zb6zmklib26fzv5dvqzy0h0p1ljjgkklnjm66imc35mx5irpzcv";
};

patchPhase = ''
Copy link
Copy Markdown
Contributor

@jonringer jonringer Feb 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default patchPhase does a lot of things for you

Suggested change
patchPhase = ''
postPatch = ''

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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.
Will do it.

def expected_results_csv_reader():"
'';

propagatedBuildInputs = [ pandas prompt_toolkit pycurl pygments requests six sqlalchemy tabulate tornado ];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really long, please list, please make into single item lines

Suggested change
propagatedBuildInputs = [ pandas prompt_toolkit pycurl pygments requests six sqlalchemy tabulate tornado ];
propagatedBuildInputs = [
pandas
prompt_toolkit
...
];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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?)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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

@FRidh
Copy link
Copy Markdown
Member

FRidh commented Feb 19, 2020

please get rid of these mass-rebuilding commits in PR's that don't need it.

"threadpool_multiple_event_loops" # times out on slow machines
"get_passwd" # passed on NixOS but failed on other Linuxes
"tcp_writealot" # times out sometimes
"ipc_closed_handle" # times out
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ipc_closed_handle" # times out

avoid mass rebuild

@FRidh
Copy link
Copy Markdown
Member

FRidh commented Feb 27, 2020

please get rid of these mass-rebuilding commits in PR's that don't need it.

@FRidh FRidh closed this Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants