
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
30 lines
717 B
Nix
30 lines
717 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "spacy-legacy";
|
|
version = "3.0.12";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-s31uDJtuHXyhz1vHFSq2SkxGcfWcha2vej/LhwNXp3Q=";
|
|
};
|
|
|
|
# nativeCheckInputs = [ pytestCheckHook spacy ];
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "spacy_legacy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Legacy registered functions for spaCy backwards compatibility";
|
|
homepage = "https://github.com/explosion/spacy-legacy";
|
|
changelog = "https://github.com/explosion/spacy-legacy/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|