1{ lib 2, fetchPypi 3, buildPythonPackage 4, pythonOlder 5, setuptools-scm 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "screed"; 11 version = "1.1.2"; 12 disabled = pythonOlder "3.8"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-c0/6eopkUoZJbYlbc2+R1rKYiVbi/UI1gSPZPshRm2o="; 17 }; 18 19 nativeBuildInputs = [ setuptools-scm ]; 20 SETUPTOOLS_SCM_PRETEND_VERSION = version; 21 22 pythonImportsCheck = [ "screed" ]; 23 checkInputs = [ pytestCheckHook ]; 24 25 # These tests use the screed CLI and make assumptions on how screed is 26 # installed that break with nix. Can be enabled when upstream is fixed. 27 disabledTests = [ 28 "Test_convert_shell" 29 "Test_fa_shell_command" 30 "Test_fq_shell_command" 31 ]; 32 33 meta = with lib; { 34 description = "A simple read-only sequence database, designed for short reads"; 35 homepage = "https://pypi.org/project/screed/"; 36 maintainers = with maintainers; [ luizirber ]; 37 license = licenses.bsd3; 38 }; 39}