2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
rustPlatform,
|
|
|
|
bitstring,
|
|
|
|
cachetools,
|
|
|
|
cffi,
|
|
|
|
deprecation,
|
|
|
|
iconv,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
screed,
|
|
|
|
hypothesis,
|
|
|
|
pytest-xdist,
|
|
|
|
pyyaml,
|
|
|
|
pytestCheckHook,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sourmash";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.8.4";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Q1hMESwzEHGXcd4XW4nLqU8cLTCxrqRgAOr1qB77roo=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-HisWvJgx15OfYoMzzqYm1JyY1/jmGXBSZZmuNaKTDjI=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
maturinBuildHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ iconv ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitstring
|
|
|
|
cachetools
|
|
|
|
cffi
|
|
|
|
deprecation
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
screed
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sourmash" ];
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
# TODO(luizirber): Working on fixing these upstream
|
|
|
|
disabledTests = [
|
|
|
|
"test_compare_no_such_file"
|
|
|
|
"test_do_sourmash_index_multiscaled_rescale_fail"
|
|
|
|
"test_metagenome_kreport_out_fail"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Quickly search, compare, and analyze genomic and metagenomic data sets";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sourmash";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://sourmash.bio";
|
|
|
|
changelog = "https://github.com/sourmash-bio/sourmash/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ luizirber ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|