Skip to content
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

snakemake: init at 5.2.2 #45828

Closed
wants to merge 2 commits into from
Closed

Conversation

renatoGarcia
Copy link
Member

Motivation for this change

Adds the snakemake program.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

name = "snakemake";
version = "5.2.2";
in python3Packages.buildPythonApplication {
name = "${name}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

please use pname and version attributes instead of your own name definition

in python3Packages.buildPythonApplication {
name = "${name}-${version}";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to use fetchFromBitBucket here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, only a noob not knowing better. :-)

@@ -0,0 +1,42 @@
{ stdenv, fetchurl, python3Packages }:
Copy link
Member

Choose a reason for hiding this comment

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

Does the author of snakemake say this only works on python3? It seems like you could specify python3 in the top-level/all-packages.nix instead of making this derivation specific.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, Snakemake requires python >= 3.5.
However, it's makes sense set the python version at top-level/all-packages.nix. Done.

@ryantm ryantm mentioned this pull request Aug 31, 2018
9 tasks
@renatoGarcia
Copy link
Member Author

Ops, I didn't search for a snakemake PR before posting this, and did not known of the #45730. Should I remove this PR?

@xeji
Copy link
Contributor

xeji commented Sep 2, 2018

closing as duplicate of #45730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants