159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
glibcLocales,
|
|
importlib-metadata,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyfaidx";
|
|
version = "0.8.1.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2EUkcEVbHnePk5aUR9uOok3rRiTHxAdpUWRZy2+HvDM=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [ importlib-metadata ];
|
|
|
|
nativeCheckInputs = [
|
|
glibcLocales
|
|
numpy
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# FileNotFoundError: [Errno 2] No such file or directory: 'data/genes.fasta.gz'
|
|
"tests/test_Fasta_bgzip.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyfaidx" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
|
|
homepage = "https://github.com/mdshw5/pyfaidx";
|
|
changelog = "https://github.com/mdshw5/pyfaidx/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ jbedo ];
|
|
mainProgram = "faidx";
|
|
};
|
|
}
|