summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gower/default.nix
blob: f161c25406f513261b16adcc9b51fe1a9c0d6a44 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  scipy,
  pandas,
}:

buildPythonPackage {

  pname = "gower";
  version = "0.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "wwwjk366";
    repo = "gower";
    rev = "d92f2145e65efe305143e9e30cc69b722d1c52e3";
    hash = "sha256-9S4uUEuntKyFbUY4wdYshsVT5Cssc/MCHqOnKHwZoVI=";
  };

  patches = [
    ./fix-pyproject_toml.patch
  ];

  build-system = [ setuptools ];

  dependencies = [
    scipy
    pandas
  ];

  pythonImportsCheck = [ "gower" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Gower's distance calculation in Python";
    homepage = "https://github.com/wwwjk366/gower";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ b-rodrigues ];
  };
}