diff --git a/pkgs/development/python-modules/pysam/default.nix b/pkgs/development/python-modules/pysam/default.nix index cdabdace5294..da739b495b11 100644 --- a/pkgs/development/python-modules/pysam/default.nix +++ b/pkgs/development/python-modules/pysam/default.nix @@ -13,11 +13,12 @@ setuptools, samtools, zlib, + nix-update-script, }: -buildPythonPackage { +buildPythonPackage rec { pname = "pysam"; - version = "0.22.1-unstable-2024-10-30"; + version = "0.23.3"; pyproject = true; # Fetching from GitHub instead of PyPi cause the 0.13 src release on PyPi is @@ -26,16 +27,19 @@ buildPythonPackage { src = fetchFromGitHub { owner = "pysam-developers"; repo = "pysam"; - rev = "0eae5be21ac3ab3ac7aa770a3931e2977e37b909"; - hash = "sha256-i8glYSpuCRNhNtK4i6eUrerz8daiMfY/YgDwgSuELbc="; + tag = "v${version}"; + hash = "sha256-yOLnfuGQW+j0nHy4MRlwurZMpeRHTGmQ9eLmihcAGoQ="; }; - nativeBuildInputs = [ + build-system = [ cython - samtools setuptools ]; + nativeBuildInputs = [ + samtools + ]; + buildInputs = [ bzip2 curl @@ -73,11 +77,15 @@ buildPythonPackage { "pysam.libchtslib" "pysam.libcutils" "pysam.libcvcf" + "pysam.libcsamtools" ]; + passthru.updateScript = nix-update-script { }; + meta = { description = "Python module for reading, manipulating and writing genome data sets"; downloadPage = "https://github.com/pysam-developers/pysam"; + changelog = "https://github.com/pysam-developers/pysam/releases/tag/${src.tag}"; homepage = "https://pysam.readthedocs.io"; maintainers = with lib.maintainers; [ unode ]; license = lib.licenses.mit;