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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3381,6 +3381,11 @@
github = "relrod";
name = "Ricky Elrod";
};
renatoGarcia = {
email = "fgarcia.renato@gmail.com";
github = "renatoGarcia";
name = "Renato Garcia";
};
renzo = {
email = "renzocarbonara@gmail.com";
github = "k0001";
Expand Down
45 changes: 45 additions & 0 deletions pkgs/applications/science/misc/snakemake/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ stdenv, fetchFromBitbucket, python }:

let
version = "5.2.2";
sha256 = "08nf0kfkj9wipaskmxpsv3ndha0wgkmmgb2hpdkkkzdz6n3l9bkq";
in python.buildPythonApplication {
inherit version;
pname = "snakemake";

src = fetchFromBitbucket {
owner = "snakemake";
repo = "snakemake";
rev = "v${version}";
inherit sha256;
};

doCheck = false;

propagatedBuildInputs = [
python.appdirs
python.datrie
python.ConfigArgParse
python.pyyaml
python.jsonschema
python.ratelimiter
python.docutils
python.wrapt
python.requests
];

meta = with stdenv.lib; {
homepage = https://snakemake.bitbucket.io;
description = "Workflow management system that aims to reduce the complexity of creating workflows.";
license = licenses.mit;
longDescription = ''
Snakemake is a workflow management system that aims to reduce the complexity of
creating workflows by providing a fast and comfortable execution environment,
together with a clean and readable specification language in Python style. Snakemake
workflows are essentially Python scripts extended by declarative code to define
rules. Rules describe how to create output files from input files.
'';
platforms = platforms.all;
maintainers = [ maintainers.renatoGarcia ];
};
}
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/ratelimiter/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest }:

let
pname = "ratelimiter";
version = "1.2.0.post0";
in buildPythonPackage {
inherit pname version;

src = fetchPypi {
inherit pname version;
sha256 = "5c395dcabdbbde2e5178ef3f89b568a3066454a6ddc223b76473dac22f89b4f7";
};

preConfigure = ''
export LC_ALL="en_US.UTF-8"
'';

buildInputs = [ pytest ];

meta = with stdenv.lib; {
homepage = https://github.com/RazerM/ratelimiter;
description = "Simple Python module providing rate limiting";
license = licenses.asl20;
longDescription = ''
The RateLimiter module ensures that an operation will not be executed more than a
given number of times on a given period. This can prove useful when working with third
parties APIs which require for example a maximum of 10 requests per second.
'';
platforms = platforms.all;
maintainers = [ maintainers.renatoGarcia ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8679,6 +8679,8 @@ with pkgs;

smc = callPackage ../tools/misc/smc { };

snakemake = callPackage ../applications/science/misc/snakemake { python = python3Packages; };

snowman = qt5.callPackage ../development/tools/analysis/snowman { };

sparse = callPackage ../development/tools/analysis/sparse { };
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17377,6 +17377,8 @@ EOF
libtorrentRasterbar = (toPythonModule (pkgs.libtorrentRasterbar.override {
inherit python;
})).python;

ratelimiter = callPackage ../development/python-modules/ratelimiter { };
});

in fix' (extends overrides packages)