about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bx-python/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/bx-python/default.nix')
-rw-r--r--pkgs/development/python-modules/bx-python/default.nix59
1 files changed, 35 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/bx-python/default.nix b/pkgs/development/python-modules/bx-python/default.nix
index c504c0cc77f3..4267e09fd538 100644
--- a/pkgs/development/python-modules/bx-python/default.nix
+++ b/pkgs/development/python-modules/bx-python/default.nix
@@ -1,45 +1,56 @@
-{ lib
-, fetchFromGitHub
-, buildPythonPackage
-, pythonOlder
-, numpy
-, cython
-, zlib
-, python-lzo
-, nose
+{
+  lib,
+  fetchFromGitHub,
+  buildPythonPackage,
+  numpy,
+  pyparsing,
+  cython,
+  zlib,
+  python-lzo,
+  pytestCheckHook,
+  setuptools,
+  oldest-supported-numpy,
 }:
 
 buildPythonPackage rec {
   pname = "bx-python";
-  version = "0.11.0";
-  format = "setuptools";
-
-  disabled = pythonOlder "3.8";
+  version = "0.13.0";
+  pyproject = true;
 
   src = fetchFromGitHub {
     owner = "bxlab";
     repo = "bx-python";
     rev = "refs/tags/v${version}";
-    hash = "sha256-evhxh/cCZFSK6EgMu7fC9/ZrPd2S1fZz89ItGYrHQck=";
+    hash = "sha256-I5yc8i9xoievaZbgwHSQQSVvs1VnNa66Q883T4dCYYw=";
   };
 
-  nativeBuildInputs = [
+  postPatch = ''
+    # pytest-cython, which provides this option, isn't packaged
+    substituteInPlace pytest.ini \
+      --replace-fail "--doctest-cython" ""
+  '';
+
+  build-system = [
+    setuptools
     cython
+    oldest-supported-numpy
   ];
 
-  buildInputs = [
-    zlib
-  ];
+  buildInputs = [ zlib ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     numpy
-    python-lzo
+    pyparsing
   ];
 
   nativeCheckInputs = [
-    nose
+    python-lzo
+    pytestCheckHook
   ];
 
+  # https://github.com/bxlab/bx-python/issues/101
+  doCheck = false;
+
   postInstall = ''
     cp -r scripts/* $out/bin
 
@@ -50,12 +61,12 @@ buildPythonPackage rec {
     ln -s $out/bin scripts
   '';
 
-  meta = with lib; {
+  meta = {
     description = "Tools for manipulating biological data, particularly multiple sequence alignments";
     homepage = "https://github.com/bxlab/bx-python";
     changelog = "https://github.com/bxlab/bx-python/releases/tag/v${version}";
-    license = licenses.mit;
-    maintainers = with maintainers; [ jbedo ];
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ jbedo ];
     platforms = [ "x86_64-linux" ];
   };
 }