File tree Expand file tree Collapse file tree 1 file changed +20
-14
lines changed
pkgs/development/python-modules/trectools Expand file tree Collapse file tree 1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change 1212 lxml ,
1313 matplotlib ,
1414 sarge ,
15+ unittestCheckHook ,
16+ setuptools ,
1517} :
1618
1719buildPythonPackage rec {
1820 pname = "trectools" ;
19- version = "0.0.49" ;
20- format = "setuptools" ;
21+ version = "0.0.50" ;
2122
2223 disabled = pythonOlder "3.6" ;
2324
2425 src = fetchFromGitHub {
2526 owner = "joaopalotti" ;
26- repo = pname ;
27+ repo = "trectools" ;
2728 # https://github.com/joaopalotti/trectools/issues/41
28- rev = "5c1d56e9cf955f45b5a1780ee6a82744d31e7a79 " ;
29- hash = "sha256-Lh6sK2rxEdCsOUKHn1jgm+rsn8FK1f2po0UuZfZajBA =" ;
29+ rev = "8a896def007e3d657eb29f820ee3de98e2f32691 " ;
30+ hash = "sha256-p8BvLO+rD/l+ATE4+u3I6k25R1RVKlk2dn+RLQZTLDs =" ;
3031 } ;
3132
3233 postPatch = ''
3334 substituteInPlace setup.py \
34- --replace "bs4 >= 0.0.0.1" "beautifulsoup4 >= 4.11.1"
35+ --replace-fail "bs4 >= 0.0.0.1" "beautifulsoup4 >= 4.11.1"
3536 '' ;
3637
37- propagatedBuildInputs = [
38+ build-system = [ setuptools ] ;
39+
40+ dependencies = [
3841 pandas
3942 numpy
4043 scikit-learn
@@ -45,17 +48,20 @@ buildPythonPackage rec {
4548 sarge
4649 ] ;
4750
48- checkPhase = ''
49- cd unittests
50- ${ python . interpreter } -m unittest runner
51- '' ;
51+ unittestFlagsArray = [
52+ "unittests/"
53+ ] ;
54+
55+ nativeCheckInputs = [
56+ unittestCheckHook
57+ ] ;
5258
5359 pythonImportsCheck = [ "trectools" ] ;
5460
55- meta = with lib ; {
61+ meta = {
5662 homepage = "https://github.com/joaopalotti/trectools" ;
5763 description = "Library for assisting Information Retrieval (IR) practitioners with TREC-like campaigns" ;
58- license = licenses . bsdOriginal ;
59- maintainers = with maintainers ; [ MoritzBoehme ] ;
64+ license = lib . licenses . bsdOriginal ;
65+ maintainers = with lib . maintainers ; [ MoritzBoehme ] ;
6066 } ;
6167}
You can’t perform that action at this time.
0 commit comments