2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
pythonAtLeast,
|
|
|
|
fetchFromGitHub,
|
2023-07-15 17:15:38 +00:00
|
|
|
# build inputs
|
2024-06-05 15:53:02 +00:00
|
|
|
inflect,
|
|
|
|
num2words,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
scikit-learn,
|
|
|
|
joblib,
|
|
|
|
wikipedia,
|
|
|
|
stemming,
|
|
|
|
setuptools,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "quantulum3";
|
|
|
|
version = "0.9.0";
|
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit version pname;
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
# Pypi source package doesn't contain tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nielstron";
|
|
|
|
repo = pname;
|
|
|
|
rev = "9dafd76d3586aa5ea1b96164d86c73037e827294";
|
|
|
|
hash = "sha256-fHztPeTbMp1aYsj+STYWzHgwdY0Q9078qXpXxtA8pPs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
inflect
|
|
|
|
num2words
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
scikit-learn
|
|
|
|
joblib
|
|
|
|
wikipedia
|
|
|
|
stemming
|
2023-08-10 07:59:29 +00:00
|
|
|
setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "quantulum3" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for unit extraction - fork of quantulum for python3";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "quantulum3-training";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/nielstron/quantulum3";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|