mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
Merge master into staging-next
This commit is contained in:
24
pkgs/development/python-modules/catalogue/default.nix
Normal file
24
pkgs/development/python-modules/catalogue/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, importlib-metadata
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "catalogue";
|
||||
version = "0.0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0m7xp85fg57wi1l1vdsq2k0b8dv5bnfccds33lb04z9vrds4l3jv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ importlib-metadata ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tiny library for adding function or object registries";
|
||||
homepage = "https://github.com/explosion/catalogue";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ danieldk ];
|
||||
};
|
||||
}
|
||||
@@ -21,16 +21,17 @@
|
||||
, blis
|
||||
, wasabi
|
||||
, srsly
|
||||
, catalogue
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "spacy";
|
||||
version = "2.2.2";
|
||||
version = "2.2.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "193r7rrqxfj4jqzk4aqgbycficzmc606vkc4ffc46zs3myhlf6sa";
|
||||
sha256 = "0shfjk6nhm6gzp5p88pz5k7bkg5dr3x9yvandkayqb2vsvkwj50x";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -51,6 +52,7 @@ buildPythonPackage rec {
|
||||
blis
|
||||
wasabi
|
||||
srsly
|
||||
catalogue
|
||||
setuptools
|
||||
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
||||
|
||||
|
||||
73
pkgs/development/python-modules/tiledb/default.nix
Normal file
73
pkgs/development/python-modules/tiledb/default.nix
Normal file
@@ -0,0 +1,73 @@
|
||||
{ lib
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, tiledb
|
||||
, numpy
|
||||
, wheel
|
||||
, isPy3k
|
||||
, setuptools_scm
|
||||
, psutil
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tiledb";
|
||||
version = "0.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TileDB-Inc";
|
||||
repo = "TileDB-Py";
|
||||
rev = version;
|
||||
sha256 = "1c9wl207c8jz0695gy8p6bxywyd1k7wmczcfl7s0hlbknliamvyx";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
setuptools_scm
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
tiledb
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
wheel # No idea why but it is listed
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
psutil
|
||||
];
|
||||
|
||||
TILEDB_PATH = tiledb;
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
disabled = !isPy3k; # Not bothering with python2 anymore
|
||||
|
||||
postPatch = ''
|
||||
# Hardcode path to shared object
|
||||
substituteInPlace tiledb/__init__.py --replace \
|
||||
'os.path.join(lib_dir, lib_name)' 'os.path.join("${tiledb}/lib", lib_name)'
|
||||
|
||||
# Disable failing test
|
||||
substituteInPlace tiledb/tests/test_examples.py --replace \
|
||||
"test_docs" "dont_test_docs"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pushd "$out"
|
||||
${python.interpreter} -m unittest tiledb.tests.all.suite_test
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to the TileDB storage manager";
|
||||
homepage = https://github.com/TileDB-Inc/TileDB-Py;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wasabi";
|
||||
version = "0.3.0";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0f18x27qrr29rgxyiy1k9b469i37n80h0x9vd9i22pyg8wxx67q5";
|
||||
sha256 = "0w2jkgrf0x58v8x90v4nifbwcb87pp613vp3sld1fk2avn80imnw";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
Reference in New Issue
Block a user