From 81ec72df04046579b1328d0b51ab63efc1e6bd42 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 26 Aug 2023 12:57:02 +0200 Subject: [PATCH] python3Packages.jellyfish: 0.9.0 -> 1.0.0 Upstream moved to pyproject.toml with a maturin build system at 0.11.x. https://github.com/jamesturk/jellyfish/commit/bebc84b8c61861584fc0574931cf66f0ff9326a7 --- .../python-modules/jellyfish/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/jellyfish/default.nix b/pkgs/development/python-modules/jellyfish/default.nix index 65f385db922f..26f34fd5f13a 100644 --- a/pkgs/development/python-modules/jellyfish/default.nix +++ b/pkgs/development/python-modules/jellyfish/default.nix @@ -4,17 +4,31 @@ , isPy3k , pytest , unicodecsv +, rustPlatform }: buildPythonPackage rec { pname = "jellyfish"; - version = "0.9.0"; + version = "1.0.0"; disabled = !isPy3k; + format = "pyproject"; + src = fetchPypi { inherit pname version; - sha256 = "40c9a2ffd8bd3016f7611d424120442f627f56d518a106847dc93f0ead6ad79a"; + hash = "sha256-iBquNnGZm7B85QwnaW8pyn6ELz4SOswNtlJcmZmIG9Q="; + }; + + nativeBuildInputs = with rustPlatform; [ + maturinBuildHook + cargoSetupHook + ]; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}-rust-dependencies"; + hash = "sha256-Grk+n4VCPjirafcRWWI51jHw/IFUYkBtbXY739j0MFI="; }; nativeCheckInputs = [ pytest unicodecsv ];