mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 21:14:52 +00:00
python311Packages.spacy_models: use pep517 builder with setuptools
This commit is contained in:
parent
1c599defe0
commit
11408cee3a
@ -5,6 +5,7 @@
|
||||
, pymorphy3
|
||||
, pymorphy3-dicts-uk
|
||||
, sentencepiece
|
||||
, setuptools
|
||||
, spacy
|
||||
, spacy-pkuseg
|
||||
, spacy-transformers
|
||||
@ -23,6 +24,7 @@ let
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
pyproject = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/explosion/spacy-models/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
|
||||
@ -41,7 +43,9 @@ let
|
||||
--replace "protobuf<3.21.0" "protobuf"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = lib.optionals requires-protobuf [
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
] ++ lib.optionals requires-protobuf [
|
||||
protobuf
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user