python312Packages.swifter: init at 1.4.0
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
dask,
|
||||
pandas,
|
||||
psutil,
|
||||
tqdm,
|
||||
ipywidgets,
|
||||
ray,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "swifter";
|
||||
version = "1.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmcarpenter2";
|
||||
repo = "swifter";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-lgdf8E9GGjeLY4ERzxqtjQuYVtdtIZt2HFLSiNBbtX4=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
pandas
|
||||
psutil
|
||||
dask
|
||||
tqdm
|
||||
] ++ dask.optional-dependencies.dataframe;
|
||||
|
||||
optional-dependencies = {
|
||||
groupby = [ ray ];
|
||||
notebook = [ ipywidgets ];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "swifter" ];
|
||||
|
||||
# tests may hang due to ignoring cpu core limit
|
||||
# https://github.com/jmcarpenter2/swifter/issues/221
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Package which efficiently applies any function to a pandas dataframe or series in the fastest available manner";
|
||||
homepage = "https://github.com/jmcarpenter2/swifter";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
||||
@@ -14961,6 +14961,8 @@ self: super: with self; {
|
||||
|
||||
swift = callPackage ../development/python-modules/swift { };
|
||||
|
||||
swifter = callPackage ../development/python-modules/swifter { };
|
||||
|
||||
swisshydrodata = callPackage ../development/python-modules/swisshydrodata { };
|
||||
|
||||
swspotify = callPackage ../development/python-modules/swspotify { };
|
||||
|
||||
Reference in New Issue
Block a user