1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 15:22:36 +03:00
nixpkgs/pkgs/development/python-modules/mpmath/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
917 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mpmath";
2021-03-24 10:28:18 +01:00
version = "1.2.1";
src = fetchPypi {
inherit pname version;
2021-03-24 10:28:18 +01:00
sha256 = "79ffb45cf9f4b101a807595bcb3e72e0396202e0b1d25d689134b48c4216a81a";
};
patches = [
(fetchpatch {
name = "CVE-2021-29063.patch";
url = "https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750.patch";
hash = "sha256-DaZ6nj9rEsjTAomu481Ujun364bL5E6lkXFvgBfHyeA=";
})
];
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://mpmath.org/";
description = "A pure-Python library for multiprecision floating arithmetic";
license = licenses.bsd3;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}