12 inherit version pname;
13 format = "setuptools";
15 # Pypi source package doesn't contain tests
16 src = fetchFromGitHub {
17 owner = "dorianbrown";
20 hash = "sha256-+BxQBflMm2AvCLAFFj52Jpkqn+KErwYXU1wztintgOg=";
23 disabled = pythonOlder "3.7";
26 # Upstream doesn't provide a PKG-INFO file
27 substituteInPlace setup.py --replace "get_version()" "'${version}'"
30 propagatedBuildInputs = [
34 pythonImportsCheck = [ "rank_bm25" ];
37 description = "A Collection of BM25 Algorithms in Python";
38 homepage = "https://github.com/dorianbrown/rank_bm25";
39 changelog = "https://github.com/dorianbrown/rank_bm25/releases/tag/${version}";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ happysalada ];