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