mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 23:07:36 +03:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
{ stdenv, fetchurl, python, buildPythonPackage
|
|
, cython, bzip2, lzo, numpy, numexpr, hdf5, six, c-blosc }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "3.4.2";
|
|
pname = "tables";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://pypi/t/tables/${name}.tar.gz";
|
|
sha256 = "fdbbea4edb6bad0ac0e53fc7bc6970e78e12eef4944aa4146bcdcb573201676c";
|
|
};
|
|
|
|
buildInputs = [ hdf5 cython bzip2 lzo c-blosc ];
|
|
propagatedBuildInputs = [ numpy numexpr six ];
|
|
|
|
# The setup script complains about missing run-paths, but they are
|
|
# actually set.
|
|
setupPyBuildFlags =
|
|
[ "--hdf5=${hdf5}"
|
|
"--lzo=${lzo}"
|
|
"--bzip2=${bzip2.dev}"
|
|
"--blosc=${c-blosc}"
|
|
];
|
|
|
|
# Run the test suite.
|
|
# It requires the build path to be in the python search path.
|
|
# These tests take quite some time.
|
|
# If the hdf5 library is built with zlib then there is only one
|
|
# test-failure. That is the same failure as described in the following
|
|
# github issue:
|
|
# https://github.com/PyTables/PyTables/issues/269
|
|
checkPhase = ''
|
|
${python}/bin/${python.executable} <<EOF
|
|
import sysconfig
|
|
import sys
|
|
import os
|
|
f = "lib.{platform}-{version[0]}.{version[1]}"
|
|
lib = f.format(platform=sysconfig.get_platform(),
|
|
version=sys.version_info)
|
|
build = os.path.join(os.getcwd(), 'build', lib)
|
|
sys.path.insert(0, build)
|
|
import tables
|
|
r = tables.test()
|
|
if not r.wasSuccessful():
|
|
sys.exit(1)
|
|
EOF
|
|
'';
|
|
|
|
# Disable tests until the failure described above is fixed.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Hierarchical datasets for Python";
|
|
homepage = http://www.pytables.org/;
|
|
license = stdenv.lib.licenses.bsd2;
|
|
};
|
|
}
|