summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/categorical-distance/default.nix
blob: 451474d2f848c002dcc10beb410d63248e3baf2b (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  unstableGitUpdater,

  # build-system
  setuptools,

  # dependencies
  numpy,

  # tests
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "categorical-distance";
  version = "1.9-unstable-2020-03-31";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dedupeio";
    repo = "categorical-distance";
    rev = "07d079fd412ccf06cdb200b3cd2cfa4b67f78722";
    hash = "sha256-zSjSrlFiRus/T2XZdakLQpF1u/LV0VNWwrc8lhss6kU=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    numpy
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "categorical"
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Compare similarity of categorical variables using Jaccard index";
    homepage = "https://github.com/dedupeio/categorical-distance";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ daniel-fahey ];
  };
}