biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / quantulum3 / default.nix
blob685145d941eaaef372c838f15a7428c31105d502
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   # build inputs
7   inflect,
8   num2words,
9   numpy,
10   scipy,
11   scikit-learn,
12   joblib,
13   wikipedia,
14   stemming,
15   setuptools,
17 let
18   pname = "quantulum3";
19   version = "0.9.0";
21 buildPythonPackage {
22   inherit version pname;
23   format = "pyproject";
25   # Pypi source package doesn't contain tests
26   src = fetchFromGitHub {
27     owner = "nielstron";
28     repo = pname;
29     rev = "9dafd76d3586aa5ea1b96164d86c73037e827294";
30     hash = "sha256-fHztPeTbMp1aYsj+STYWzHgwdY0Q9078qXpXxtA8pPs=";
31   };
33   disabled = pythonOlder "3.7";
35   propagatedBuildInputs = [
36     inflect
37     num2words
38     numpy
39     scipy
40     scikit-learn
41     joblib
42     wikipedia
43     stemming
44     setuptools
45   ];
47   pythonImportsCheck = [ "quantulum3" ];
49   meta = with lib; {
50     description = "Library for unit extraction - fork of quantulum for python3";
51     mainProgram = "quantulum3-training";
52     homepage = "https://github.com/nielstron/quantulum3";
53     license = licenses.mit;
54     maintainers = with maintainers; [ happysalada ];
55   };