···9, regex
10, tabview
11, python
012}:
1314buildPythonPackage rec {
···33 tabview
34 ];
350036 pythonImportsCheck = [
37 "clevercsv"
38 "clevercsv.cparser"
39 ];
4041- checkPhase = ''
42 # by linking the installed version the tests also have access to compiled native libraries
43 rm -r clevercsv
44 ln -s $out/${python.sitePackages}/clevercsv/ clevercsv
45- # their ci only runs unit tests, there are also integration and fuzzing tests
46- ${python.interpreter} -m unittest discover -v -f -s ./tests/test_unit
47 '';
0004849 meta = with lib; {
50 description = "CleverCSV is a Python package for handling messy CSV files";
51 longDescription = ''
52- CleverCSV is a Python package for handling messy CSV files. It provides
53- a drop-in replacement for the builtin CSV module with improved dialect
54- detection, and comes with a handy command line application for working
55- with CSV files.
56 '';
57 homepage = "https://github.com/alan-turing-institute/CleverCSV";
58 changelog = "https://github.com/alan-turing-institute/CleverCSV/blob/master/CHANGELOG.md";
···9, regex
10, tabview
11, python
12+, unittestCheckHook
13}:
1415buildPythonPackage rec {
···34 tabview
35 ];
3637+ checkInputs = [ unittestCheckHook ];
38+39 pythonImportsCheck = [
40 "clevercsv"
41 "clevercsv.cparser"
42 ];
4344+ preCheck = ''
45 # by linking the installed version the tests also have access to compiled native libraries
46 rm -r clevercsv
47 ln -s $out/${python.sitePackages}/clevercsv/ clevercsv
0048 '';
49+50+ # their ci only runs unit tests, there are also integration and fuzzing tests
51+ unittestFlagsArray = [ "-v" "-f" "-s" "./tests/test_unit" ];
5253 meta = with lib; {
54 description = "CleverCSV is a Python package for handling messy CSV files";
55 longDescription = ''
56+ CleverCSV is a Python package for handling messy CSV files. It provides
57+ a drop-in replacement for the builtin CSV module with improved dialect
58+ detection, and comes with a handy command line application for working
59+ with CSV files.
60 '';
61 homepage = "https://github.com/alan-turing-institute/CleverCSV";
62 changelog = "https://github.com/alan-turing-institute/CleverCSV/blob/master/CHANGELOG.md";