Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, cython, fftw, pandas, scikit-learn, numpy, pip, setuptools, pytestCheckHook, nix-update-script,}:
buildPythonPackage rec { pname = "mrsqm"; version = "4"; pyproject = true;
build-system = [ setuptools ];
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "mlgig"; repo = "mrsqm"; tag = "r${version}"; hash = "sha256-59f18zItV3K6tXcg1v1q2Z8HYrQB8T0ntaaqjxeAEbM="; };
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 = with lib.maintainers; [ mbalatsko ]; };}