summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/idbutils/default.nix
blob: 6668aa76f7ccfb0565468313fa99a7641fc654d1 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  sqlalchemy,
  requests,
  python-dateutil,
  tqdm,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "idbutils";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tcgoetz";
    repo = "utilities";
    tag = version;
    hash = "sha256-niscY7sURrJ7YcPKbI6ByU03po6Hfxm0gHbvmDa6TgM=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    sqlalchemy
    requests
    python-dateutil
    tqdm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "idbutils" ];

  meta = {
    description = "Python utilities useful for database and internal apps";
    license = lib.licenses.gpl2Only;
    homepage = "https://github.com/tcgoetz/utilities";
    maintainers = with lib.maintainers; [ ethancedwards8 ];
  };
}