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.pysam: add libdeflate and enable tests #100823
Conversation
Can any of you test if the current commit succeeds on your end?
I also got this failure while reviewing #100654 but @jonringer reported success there. I now also made pysam use the nixpkgs |
14768be
to
c7e0e55
Compare
sometimes if you have a local directory with the module name, usually I do something like:
|
Added this and pytest stopped finding any test.
Then adding
This happens because tests are launched with I feel I'm getting deeper and deeper into rabbit holes with this... Can I somehow tell nix to use the pytest command instead of |
Ok, I'm reverting the use of
I'll revisit this in the future if |
Some tests still fail due to upstream reasons so we skip those. Note also that we are not using nix's pytestCheckHook due to pysam detecting how it's loaded which conflicts with how pytestCheckHook runs tests. In addition, the selection mode used by disabledTests causes more tests than the failing ones to be skipped, which is undesired. See the discussion in NixOS#100823
Thanks everyone and in particular @jonringer for detailed reviewing and lots of feedback and guidance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://github.com/NixOS/nixpkgs/pull/100823
12 packages built:
deeptools lumpy python27Packages.HTSeq python27Packages.pysam python37Packages.HTSeq python37Packages.cnvkit python37Packages.pysam python38Packages.HTSeq python38Packages.cnvkit python38Packages.pysam tebreak truvari
Motivation for this change
Tests are currently not enabled and upstream is not always in sync with the latest samtools/htslib versions leading to some incompatibilities.
Tests that are known to fail have been reported upstream and disabled/deselected here.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)