pythonPackages.accupy: init at 0.1.4
This commit is contained in:
parent
119106993e
commit
ba96e40ad1
62
pkgs/development/python-modules/accupy/default.nix
Normal file
62
pkgs/development/python-modules/accupy/default.nix
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, mpmath
|
||||||
|
, numpy
|
||||||
|
, pipdate
|
||||||
|
, pybind11
|
||||||
|
, pyfma
|
||||||
|
, eigen
|
||||||
|
, pytest
|
||||||
|
, matplotlib
|
||||||
|
, perfplot
|
||||||
|
, isPy27
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "accupy";
|
||||||
|
version = "0.1.4";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "2a67f2a778b824fb24eb338fed8e0b61c1af93369d57ff8132f5d602d60f0543";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
pybind11 eigen
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
mpmath
|
||||||
|
numpy
|
||||||
|
pipdate
|
||||||
|
pyfma
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
matplotlib
|
||||||
|
perfplot
|
||||||
|
];
|
||||||
|
|
||||||
|
postConfigure = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "/usr/include/eigen3/" "${eigen}/include/eigen3/"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Accurate sums and dot products for Python";
|
||||||
|
homepage = https://github.com/nschloe/accupy;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -968,6 +968,8 @@ in {
|
|||||||
|
|
||||||
vega = callPackage ../development/python-modules/vega { };
|
vega = callPackage ../development/python-modules/vega { };
|
||||||
|
|
||||||
|
accupy = callPackage ../development/python-modules/accupy { };
|
||||||
|
|
||||||
acme = callPackage ../development/python-modules/acme { };
|
acme = callPackage ../development/python-modules/acme { };
|
||||||
|
|
||||||
acme-tiny = callPackage ../development/python-modules/acme-tiny { };
|
acme-tiny = callPackage ../development/python-modules/acme-tiny { };
|
||||||
|
Loading…
Reference in New Issue
Block a user