Files
nixpkgs/pkgs/development/python-modules/dataprep-ml/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

84 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
colorlog,
dataclasses-json,
fetchPypi,
nltk-data,
numpy,
pandas,
poetry-core,
pydantic,
pydateinfer,
python-dateutil,
scipy,
symlinkJoin,
type-infer,
}:
let
testNltkData = symlinkJoin {
name = "nltk-test-data";
paths = [
nltk-data.punkt
nltk-data.stopwords
];
};
in
buildPythonPackage rec {
pname = "dataprep-ml";
version = "25.2.3.0";
pyproject = true;
# using PyPI as github repo does not contain tags or release branches
src = fetchPypi {
pname = "dataprep_ml";
inherit version;
hash = "sha256-pULqrPTxGtBLRsKCpSsP3a/QA0O5eXOP6BSI5TbCQWY=";
};
pythonRelaxDeps = [
"pydantic"
"numpy"
];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
colorlog
dataclasses-json
numpy
pandas
pydantic
pydateinfer
python-dateutil
scipy
type-infer
];
# PyPI tarball has no tests
doCheck = false;
# Package import requires NLTK data to be downloaded
# It is the only way to set NLTK_DATA environment variable,
# so that it is available in pythonImportsCheck
env.NLTK_DATA = testNltkData;
pythonImportsCheck = [
"dataprep_ml"
"dataprep_ml.cleaners"
"dataprep_ml.helpers"
"dataprep_ml.imputers"
"dataprep_ml.insights"
"dataprep_ml.recommenders"
"dataprep_ml.splitters"
];
meta = {
description = "Data utilities for Machine Learning pipelines";
homepage = "https://github.com/mindsdb/dataprep_ml";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}