python3Packages.spacy-loggers: cleanup, fix on python>=3.14
This commit is contained in:
@@ -1,35 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
wandb,
|
||||
wasabi,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
spacy,
|
||||
spacy-loggers,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "spacy-loggers";
|
||||
version = "1.0.5";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-1gsL2/kVpg5RbMLmU7rv+Ubwz8RhtFLRGk1UWMb+XyQ=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "explosion";
|
||||
repo = "spacy-loggers";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Kl8FSs+sbIF2Ml5AJhP5aY7lWnDLqUr7QBAq+63SW5Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
wandb
|
||||
wasabi
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "spacy_loggers" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
spacy
|
||||
pytestCheckHook
|
||||
];
|
||||
# skipping the checks, because it requires a cycle dependency to spacy as well.
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
tests.pytest = spacy-loggers.overridePythonAttrs {
|
||||
doCheck = true;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Logging utilities for spaCy";
|
||||
homepage = "https://github.com/explosion/spacy-loggers";
|
||||
changelog = "https://github.com/explosion/spacy-loggers/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ stunkymonkey ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user