mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
eb6df5f186
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-pysam/versions
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, bzip2
|
|
, bcftools
|
|
, curl
|
|
, cython
|
|
, htslib
|
|
, lzma
|
|
, pytest
|
|
, samtools
|
|
, zlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysam";
|
|
version = "0.15.2";
|
|
|
|
# Fetching from GitHub instead of PyPi cause the 0.13 src release on PyPi is
|
|
# missing some files which cause test failures.
|
|
# Tracked at: https://github.com/pysam-developers/pysam/issues/616
|
|
src = fetchFromGitHub {
|
|
owner = "pysam-developers";
|
|
repo = "pysam";
|
|
rev = "v${version}";
|
|
sha256 = "03aczbzx6gmvgy60fhswpwkry7a8zb5q1pbp55v5gx8hk15n40k1";
|
|
};
|
|
|
|
buildInputs = [ bzip2 curl cython lzma zlib ];
|
|
|
|
checkInputs = [ pytest bcftools htslib samtools ];
|
|
|
|
checkPhase = "py.test";
|
|
|
|
preInstall = ''
|
|
export HOME=$(mktemp -d)
|
|
make -C tests/pysam_data
|
|
make -C tests/cbcf_data
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://pysam.readthedocs.io/;
|
|
description = "A python module for reading, manipulating and writing genome data sets";
|
|
maintainers = with lib.maintainers; [ unode ];
|
|
license = lib.licenses.mit;
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|