summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/highered/default.nix
blob: b9025a0c4c67576815d454c2d7817e06f3bf0c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  unstableGitUpdater,

  # build-system
  setuptools,

  # dependencies
  pyhacrf-datamade,
  numpy,

  # tests
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "highered";
  version = "0.2.1-unstable-2020-03-31";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dedupeio";
    repo = "highered";
    rev = "5e6e505e182ff91b1620535a491ad4a3d98ef71e";
    hash = "sha256-sDOAB0QabJ/WJYSIZ31J12kSDQADQUilE2SmGPjXmZo=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    pyhacrf-datamade
    numpy
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  # No tests in repository
  doCheck = false;

  pythonImportsCheck = [
    "highered"
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Learnable edit distance using CRF (Conditional Random Fields)";
    homepage = "https://github.com/dedupeio/highered";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ daniel-fahey ];
  };
}