Files
nixpkgs/pkgs/development/python-modules/mrsqm/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

79 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
fftw,
pandas,
scikit-learn,
numpy,
pip,
setuptools,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "mrsqm";
version = "0.0.7";
pyproject = true;
build-system = [
setuptools
];
src = fetchFromGitHub {
owner = "mlgig";
repo = "mrsqm";
tag = "v.${version}";
hash = "sha256-5K6vCU0HExnmYNThZNDCbEtII9bUGauxDtKkJXe/85Q=";
};
buildInputs = [ fftw ];
nativeBuildInputs = [ cython ];
dependencies = [
pandas
scikit-learn
numpy
pip
];
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setup_requires=['pytest-runner']," ""
substituteInPlace pyproject.toml \
--replace-fail "numpy==" "numpy>="
'';
preBuild = ''
export HOME=$(mktemp -d)
'';
nativeCheckInputs = [
pytestCheckHook
];
enabledTestPaths = [
"tests/mrsqm"
];
pythonImportsCheck = [ "mrsqm" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"v\\.(.*)"
];
};
meta = {
description = "MrSQM (Multiple Representations Sequence Miner) is a time series classifier";
homepage = "https://pypi.org/project/mrsqm";
changelog = "https://github.com/mlgig/mrsqm/releases/tag/v.${src.tag}";
license = lib.licenses.gpl3Only;
maintainers = [ ];
};
}