Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 glibcLocales, 6 importlib-metadata, 7 numpy, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11 setuptools-scm, 12}: 13 14buildPythonPackage rec { 15 pname = "pyfaidx"; 16 version = "0.8.1.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-bwSCNSYZ8sxWADyiIyG9sNB2S2VnlbweQGKx+psIaGs="; 24 }; 25 26 build-system = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 dependencies = [ importlib-metadata ]; 32 33 nativeCheckInputs = [ 34 glibcLocales 35 numpy 36 pytestCheckHook 37 ]; 38 39 disabledTestPaths = [ 40 # FileNotFoundError: [Errno 2] No such file or directory: 'data/genes.fasta.gz' 41 "tests/test_Fasta_bgzip.py" 42 ]; 43 44 pythonImportsCheck = [ "pyfaidx" ]; 45 46 meta = with lib; { 47 description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index"; 48 homepage = "https://github.com/mdshw5/pyfaidx"; 49 changelog = "https://github.com/mdshw5/pyfaidx/releases/tag/v${version}"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ jbedo ]; 52 mainProgram = "faidx"; 53 }; 54}