1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

Merge pull request #298393 from luizirber/lirber/sourmash_4.8.7

python3Packages.sourmash: 4.8.4 -> 4.8.11
This commit is contained in:
OTABI Tomoya 2024-08-03 17:43:20 +09:00 committed by GitHub
commit e3ebf21963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,9 @@
lib,
fetchPypi,
buildPythonPackage,
stdenv,
pythonOlder,
overrideSDK,
rustPlatform,
bitstring,
cachetools,
@ -18,27 +20,32 @@
pyyaml,
pytestCheckHook,
}:
let
stdenv' = if stdenv.isDarwin then overrideSDK stdenv { darwinMinVersion = "10.14"; } else stdenv;
in
buildPythonPackage rec {
pname = "sourmash";
version = "4.8.4";
format = "pyproject";
disabled = pythonOlder "3.8";
version = "4.8.11";
pyproject = true;
disabled = pythonOlder "3.9";
stdenv = stdenv';
src = fetchPypi {
inherit pname version;
hash = "sha256-Q1hMESwzEHGXcd4XW4nLqU8cLTCxrqRgAOr1qB77roo=";
hash = "sha256-GganbfRkuSaFd5qqpu0CpXe91zpKsyly6BNFgQNNNL8=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-HisWvJgx15OfYoMzzqYm1JyY1/jmGXBSZZmuNaKTDjI=";
hash = "sha256-im/TPxnT8c2QbWlzCY60wVwJFRIhSnVW7E4kv6bm0p4=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
bindgenHook
];
buildInputs = [ iconv ];