uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
101
pkgs/development/python-modules/thinc/default.nix
Normal file
101
pkgs/development/python-modules/thinc/default.nix
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, blis
|
||||
, catalogue
|
||||
, cymem
|
||||
, cython
|
||||
, contextvars
|
||||
, dataclasses
|
||||
, Accelerate
|
||||
, CoreFoundation
|
||||
, CoreGraphics
|
||||
, CoreVideo
|
||||
, hypothesis
|
||||
, mock
|
||||
, murmurhash
|
||||
, numpy
|
||||
, plac
|
||||
, pythonOlder
|
||||
, preshed
|
||||
, pydantic
|
||||
, srsly
|
||||
, tqdm
|
||||
, typing-extensions
|
||||
, wasabi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "thinc";
|
||||
version = "8.0.17";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-BCxRiqeZo4vsIqegvyjfgM5hfrfeMrwEl5hwfAo2Fn8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "pydantic>=1.7.4,!=1.8,!=1.8.1,<1.9.0" "pydantic"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
cython
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Accelerate
|
||||
CoreFoundation
|
||||
CoreGraphics
|
||||
CoreVideo
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
blis
|
||||
catalogue
|
||||
cymem
|
||||
murmurhash
|
||||
numpy
|
||||
plac
|
||||
preshed
|
||||
srsly
|
||||
tqdm
|
||||
pydantic
|
||||
wasabi
|
||||
] ++ lib.optional (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
] ++ lib.optional (pythonOlder "3.7") [
|
||||
contextvars
|
||||
dataclasses
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Add native extensions.
|
||||
preCheck = ''
|
||||
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||||
|
||||
# avoid local paths, relative imports wont resolve correctly
|
||||
mv thinc/tests tests
|
||||
rm -r thinc
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"thinc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Practical Machine Learning for NLP in Python";
|
||||
homepage = "https://github.com/explosion/thinc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ aborsu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue