Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.py_stringmatching: init at 0.4.0 #35471

Merged
merged 1 commit into from Feb 26, 2018
Merged

pythonPackages.py_stringmatching: init at 0.4.0 #35471

merged 1 commit into from Feb 26, 2018

Conversation

ixxie
Copy link
Contributor

@ixxie ixxie commented Feb 24, 2018

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

sha256 = "0rjsx7iipn6svki21lmsza7b0dz9vkgmix696zryiv7gkhblqyb4";
};

# No tests in archive
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong! Just look in py_stringmatching/tests/.
Please enable tests and use nosetests in the checkPhase.

propagatedBuildInputs = [ numpy six ];

meta = with lib; {
description = "This project seeks to build a Python software package that consists of a comprehensive and scalable set of string tokenizers (such as alphabetical tokenizers, whitespace tokenizers) and string similarity measures (such as edit distance, Jaccard, TF/IDF).";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too long. This could be a longDescription. Also please split it into multiple lines.

@@ -0,0 +1,29 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary whitespace

@ixxie
Copy link
Contributor Author

ixxie commented Feb 24, 2018

@dotlambda should be alright now!

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.py_stringmatching python3.pkgs.py_stringmatching

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

test_invalid_input9 (py_stringmatching.tests.test_simfunctions.TverskyIndexTestCases) ... ok
test_set_alpha (py_stringmatching.tests.test_simfunctions.TverskyIndexTestCases) ... ok
test_set_beta (py_stringmatching.tests.test_simfunctions.TverskyIndexTestCases) ... ok
test_valid_input_raw_score (py_stringmatching.tests.test_simfunctions.TverskyIndexTestCases) ... ok
test_valid_input_sim_score (py_stringmatching.tests.test_simfunctions.TverskyIndexTestCases) ... ok

----------------------------------------------------------------------
Ran 439 tests in 0.128s

OK

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Partial log (click to expand)

test_invalid_input7_sim_score (py_stringmatching.tests.test_sim_Soundex.SoundexTestCases) ... ok
test_invalid_input8_sim_score (py_stringmatching.tests.test_sim_Soundex.SoundexTestCases) ... ok
test_invalid_input9_sim_score (py_stringmatching.tests.test_sim_Soundex.SoundexTestCases) ... ok
test_valid_input_raw_score (py_stringmatching.tests.test_sim_Soundex.SoundexTestCases) ... ok
test_valid_input_sim_score (py_stringmatching.tests.test_sim_Soundex.SoundexTestCases) ... ok

----------------------------------------------------------------------
Ran 439 tests in 0.414s

OK

propagatedBuildInputs = [ numpy six ];

meta = with lib; {
description = "A Python string matching library including string tokenizers and string similarity measures.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you can keep the previous description as longDescription if you want.

@ixxie
Copy link
Contributor Author

ixxie commented Feb 25, 2018

@dotlambda - I applied the requested changes.

@FRidh FRidh merged commit afd364a into NixOS:master Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants