Unverified Commit d0a26e43 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #248511 from tjni/diofant

python3.pkgs.diofant: 0.13.0 -> 0.14.0
parents 90736f84 ae76463e
Loading
Loading
Loading
Loading
+26 −8
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, cython
, fetchpatch
, fetchPypi
, gmpy2
, isort
, mpmath
, numpy
, pythonOlder
, scipy
, setuptools-scm
, wheel
}:

buildPythonPackage rec {
  pname = "diofant";
  version = "0.13.0";
  disabled = pythonOlder "3.9";
  version = "0.14.0";
  format = "pyproject";
  disabled = pythonOlder "3.10";

  src = fetchPypi {
    inherit version;
    pname = "Diofant";
    sha256 = "bac9e086a7156b20f18e3291d6db34e305338039a3c782c585302d377b74dd3c";
    hash = "sha256-c886y37xR+4TxZw9+3tb7nkTGxWcS+Ag/ruUUdpf7S4=";
  };

  patches = [
    (fetchpatch {
      name = "remove-pip-from-build-dependencies.patch";
      url = "https://github.com/diofant/diofant/commit/117e441808faa7c785ccb81bf211772d60ebdec3.patch";
      hash = "sha256-MYk1Ku4F3hAv7+jJQLWhXd8qyKRX+QYuBzPfYWT0VbU=";
    })
  ];

  nativeBuildInputs = [
    isort
    setuptools-scm
    wheel
  ];

  propagatedBuildInputs = [
    gmpy2
    mpmath
  ];

  passthru.optional-dependencies = {
    exports = [
      cython
      numpy
      scipy
    ];
    gmpy = [
      gmpy2
    ];
  };

  # tests take ~1h
  doCheck = false;