d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
, fetchFromGitHub
|
|
# build inputs
|
|
, inflect
|
|
, num2words
|
|
, numpy
|
|
, scipy
|
|
, scikit-learn
|
|
, joblib
|
|
, wikipedia
|
|
, stemming
|
|
, setuptools
|
|
}:
|
|
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
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [ "quantulum3" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for unit extraction - fork of quantulum for python3";
|
|
homepage = "https://github.com/nielstron/quantulum3";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|