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

buildPythonPackage rec {
  pname = "dbutils";
  version = "3.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "WebwareForPython";
    repo = "DBUtils";
    tag = "Release-${lib.replaceStrings [ "." ] [ "_" ] version}";
    hash = "sha256-YyZKGN7oNuCR4lU7pxkY+vLOWGQzQjqvAIOZc7LlvUM=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dbutils" ];

  meta = {
    description = "Database connections for multi-threaded environments";
    homepage = "https://webwareforpython.github.io/DBUtils/";
    changelog = "https://webwareforpython.github.io/DBUtils/changelog.html";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}