Merge pull request #59657 from costrouc/python-loo-py-init
pythonPackages.loo-py: init at 2017.2
This commit is contained in:
34
pkgs/development/python-modules/cgen/default.nix
Normal file
34
pkgs/development/python-modules/cgen/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytools
|
||||
, numpy
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cgen";
|
||||
version = "2017.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a04525d51ee975d37d590d6d82bf80a46e77f75187cccfd2248a89616a778795";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [
|
||||
pytools
|
||||
numpy
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "C/C++ source generation from an AST";
|
||||
homepage = https://github.com/inducer/cgen;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/genpy/default.nix
Normal file
29
pkgs/development/python-modules/genpy/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytools
|
||||
, numpy
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "genpy";
|
||||
version = "2016.1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1c11726f1e8ace8bbdfc87816403c9a59f53a8c3d45c99187ae17c9725d87a91";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytools
|
||||
numpy
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "C/C++ source generation from an AST";
|
||||
homepage = https://github.com/inducer/genpy;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
41
pkgs/development/python-modules/islpy/default.nix
Normal file
41
pkgs/development/python-modules/islpy/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isl
|
||||
, pytest
|
||||
, cffi
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "islpy";
|
||||
version = "2018.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "be422a53b576210a0bb9775866abb6580b1e568222fc3e4e39d9e82f6d1d7253";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "\"pytest>=2\"," ""
|
||||
'';
|
||||
|
||||
buildInputs = [ isl ];
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
six
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper around isl, an integer set library";
|
||||
homepage = https://github.com/inducer/islpy;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
51
pkgs/development/python-modules/loo-py/default.nix
Normal file
51
pkgs/development/python-modules/loo-py/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytools
|
||||
, pymbolic
|
||||
, genpy
|
||||
, cgen
|
||||
, islpy
|
||||
, six
|
||||
, colorama
|
||||
, mako
|
||||
, pyopencl
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "loo-py";
|
||||
version = "2017.2";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "loo.py";
|
||||
inherit version;
|
||||
sha256 = "c656992de48b328cdaccd7d1f14eb522b9dd5a1d0d15f54623f4ab18fd219abc";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [
|
||||
pytools
|
||||
pymbolic
|
||||
genpy
|
||||
cgen
|
||||
islpy
|
||||
six
|
||||
colorama
|
||||
mako
|
||||
pyopencl
|
||||
];
|
||||
|
||||
# pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
HOME=$(mktemp -d) pytest test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A code generator for array-based code on CPUs and GPUs";
|
||||
homepage = https://mathema.tician.de/software/loopy;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
44
pkgs/development/python-modules/pymbolic/default.nix
Normal file
44
pkgs/development/python-modules/pymbolic/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytools
|
||||
, pytest
|
||||
, six
|
||||
, sympy
|
||||
, pexpect
|
||||
, symengine
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymbolic";
|
||||
version = "2018.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a47d5524d6a3cdc8a028079ce632eeb45ceea7243272d234f250622087688207";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "\"pytest>=2.3\"," ""
|
||||
'';
|
||||
|
||||
checkInputs = [ sympy pexpect symengine pytest ];
|
||||
propagatedBuildInputs = [
|
||||
pytools
|
||||
six
|
||||
];
|
||||
|
||||
# too many tests fail
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A package for symbolic computation";
|
||||
homepage = https://mathema.tician.de/software/pymbolic;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
52
pkgs/development/python-modules/symengine/default.nix
Normal file
52
pkgs/development/python-modules/symengine/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, cmake
|
||||
, symengine
|
||||
, pytest
|
||||
, sympy
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "symengine";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "symengine";
|
||||
repo = "symengine.py";
|
||||
rev = "v${version}";
|
||||
sha256 = "07i9rwxphi4zgwc7y6f6qvq73iym2cx4k1bpd7rmd3wkpgrrfxqx";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "\"cmake\"" "\"${cmake}/bin/cmake\""
|
||||
|
||||
substituteInPlace cmake/FindCython.cmake \
|
||||
--replace "SET(CYTHON_BIN cython" "SET(CYTHON_BIN ${cython}/bin/cython"
|
||||
'';
|
||||
|
||||
buildInputs = [ cython cmake ];
|
||||
|
||||
checkInputs = [ pytest sympy ];
|
||||
|
||||
setupPyBuildFlags = [
|
||||
"--symengine-dir=${symengine}/"
|
||||
"--define=\"CYTHON_BIN=${cython}/bin/cython\""
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
mkdir empty
|
||||
cd empty
|
||||
${python.interpreter} ../bin/test_python.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library providing wrappers to SymEngine";
|
||||
homepage = https://github.com/symengine/symengine.py;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user