Merge pull request #230596 from luizirber/lirber/sourmash

python3Packages.sourmash: init at 4.8.3

authored by OTABI Tomoya and committed by GitHub 30683ca1 09661df6

+80
+78
pkgs/development/python-modules/sourmash/default.nix
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , pythonOlder 5 + , rustPlatform 6 + , bitstring 7 + , cachetools 8 + , cffi 9 + , deprecation 10 + , iconv 11 + , matplotlib 12 + , numpy 13 + , scipy 14 + , screed 15 + , hypothesis 16 + , pytest-xdist 17 + , pyyaml 18 + , pytestCheckHook 19 + }: 20 + 21 + buildPythonPackage rec { 22 + pname = "sourmash"; 23 + version = "4.8.3"; 24 + format = "pyproject"; 25 + disabled = pythonOlder "3.8"; 26 + 27 + src = fetchPypi { 28 + inherit pname version; 29 + hash = "sha256-LIMpL9cLafytRFyPam/FBNi757j1v6o1FG/K2JknDQY="; 30 + }; 31 + 32 + cargoDeps = rustPlatform.fetchCargoTarball { 33 + inherit src; 34 + name = "${pname}-${version}"; 35 + hash = "sha256-mcJzFRYkdxuqqXH+ryg5v+9tQtuN1hkEeW2DF+wEJ/w="; 36 + }; 37 + 38 + nativeBuildInputs = with rustPlatform; [ 39 + cargoSetupHook 40 + maturinBuildHook 41 + ]; 42 + 43 + buildInputs = [ iconv ]; 44 + 45 + propagatedBuildInputs = [ 46 + bitstring 47 + cachetools 48 + cffi 49 + deprecation 50 + matplotlib 51 + numpy 52 + scipy 53 + screed 54 + ]; 55 + 56 + pythonImportsCheck = [ "sourmash" ]; 57 + nativeCheckInputs = [ 58 + hypothesis 59 + pytest-xdist 60 + pytestCheckHook 61 + pyyaml 62 + ]; 63 + 64 + # TODO(luizirber): Working on fixing these upstream 65 + disabledTests = [ 66 + "test_compare_no_such_file" 67 + "test_do_sourmash_index_multiscaled_rescale_fail" 68 + "test_metagenome_kreport_out_fail" 69 + ]; 70 + 71 + meta = with lib; { 72 + description = "Quickly search, compare, and analyze genomic and metagenomic data sets"; 73 + homepage = "https://sourmash.bio"; 74 + changelog = "https://github.com/sourmash-bio/sourmash/releases/tag/v${version}"; 75 + maintainers = with maintainers; [ luizirber ]; 76 + license = licenses.bsd3; 77 + }; 78 + }
+2
pkgs/top-level/python-packages.nix
··· 11879 11879 11880 11880 soupsieve = callPackage ../development/python-modules/soupsieve { }; 11881 11881 11882 + sourmash = callPackage ../development/python-modules/sourmash { }; 11883 + 11882 11884 soxr = callPackage ../development/python-modules/soxr { 11883 11885 libsoxr = pkgs.soxr; 11884 11886 };