nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 # build inputs 6 inflect, 7 num2words, 8 numpy, 9 scipy, 10 scikit-learn, 11 joblib, 12 wikipedia, 13 stemming, 14 setuptools, 15}: 16let 17 pname = "quantulum3"; 18 version = "0.9.2"; 19in 20buildPythonPackage { 21 inherit version pname; 22 pyproject = true; 23 24 # Pypi source package doesn't contain tests 25 src = fetchFromGitHub { 26 owner = "nielstron"; 27 repo = "quantulum3"; 28 rev = "9dafd76d3586aa5ea1b96164d86c73037e827294"; 29 hash = "sha256-fHztPeTbMp1aYsj+STYWzHgwdY0Q9078qXpXxtA8pPs="; 30 }; 31 32 propagatedBuildInputs = [ 33 inflect 34 num2words 35 numpy 36 scipy 37 scikit-learn 38 joblib 39 wikipedia 40 stemming 41 setuptools 42 ]; 43 44 pythonImportsCheck = [ "quantulum3" ]; 45 46 meta = { 47 description = "Library for unit extraction - fork of quantulum for python3"; 48 mainProgram = "quantulum3-training"; 49 homepage = "https://github.com/nielstron/quantulum3"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ happysalada ]; 52 }; 53}