diff options
Diffstat (limited to 'pkgs/development/python-modules/screed/default.nix')
-rw-r--r-- | pkgs/development/python-modules/screed/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/screed/default.nix b/pkgs/development/python-modules/screed/default.nix new file mode 100644 index 00000000000..f21e09d1e58 --- /dev/null +++ b/pkgs/development/python-modules/screed/default.nix @@ -0,0 +1,43 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pythonOlder +, bz2file +, setuptools +, setuptools-scm +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "screed"; + version = "1.1.1"; + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-EB4ZNImNLUoU+dnJd3S4wTyQpmuNK3NLtakPsO1iCbU="; + }; + + nativeBuildInputs = [ setuptools-scm ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + pythonImportsCheck = [ "screed" ]; + checkInputs = [ pytestCheckHook ]; + + # These tests use the screed CLI and make assumptions on how screed is + # installed that break with nix. Can be enabled when upstream is fixed. + disabledTests = [ + "Test_convert_shell" + "Test_fa_shell_command" + "Test_fq_shell_command" + ]; + + propagatedBuildInputs = [ bz2file setuptools ]; + + meta = with lib; { + description = "A simple read-only sequence database, designed for short reads"; + homepage = "https://pypi.org/project/screed/"; + maintainers = with maintainers; [ luizirber ]; + license = licenses.bsd3; + }; +} |