nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 wandb,
11 wasabi,
12
13 # tests
14 pytestCheckHook,
15 spacy,
16 spacy-loggers,
17}:
18
19buildPythonPackage (finalAttrs: {
20 pname = "spacy-loggers";
21 version = "1.0.5";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "explosion";
26 repo = "spacy-loggers";
27 tag = "v${finalAttrs.version}";
28 hash = "sha256-Kl8FSs+sbIF2Ml5AJhP5aY7lWnDLqUr7QBAq+63SW5Q=";
29 };
30
31 build-system = [
32 setuptools
33 ];
34
35 dependencies = [
36 wandb
37 wasabi
38 ];
39
40 pythonImportsCheck = [ "spacy_loggers" ];
41
42 nativeCheckInputs = [
43 spacy
44 pytestCheckHook
45 ];
46 # skipping the checks, because it requires a cycle dependency to spacy as well.
47 doCheck = false;
48
49 passthru = {
50 tests.pytest = spacy-loggers.overridePythonAttrs {
51 doCheck = true;
52 };
53 };
54
55 meta = {
56 description = "Logging utilities for spaCy";
57 homepage = "https://github.com/explosion/spacy-loggers";
58 changelog = "https://github.com/explosion/spacy-loggers/releases/tag/${finalAttrs.src.tag}";
59 license = lib.licenses.mit;
60 maintainers = with lib.maintainers; [ stunkymonkey ];
61 };
62})