summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dataset/default.nix
blob: 5ed0fe4008e062616b36305f067c57f6bedb5b87 (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,
  setuptools,
  alembic,
  banal,
  buildPythonPackage,
  fetchFromGitHub,
  sqlalchemy,
}:

buildPythonPackage rec {
  pname = "dataset";
  version = "1.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pudo";
    repo = "dataset";
    tag = version;
    hash = "sha256-hu1Qa5r3eT+xHFrCuYyJ9ZWvyoJBsisO34zvkch65Tc=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    alembic
    banal
    sqlalchemy
  ];

  # checks attempt to import nonexistent module 'test.test' and fail
  doCheck = false;

  pythonImportsCheck = [ "dataset" ];

  meta = {
    description = "Toolkit for Python-based database access";
    homepage = "https://dataset.readthedocs.io";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xfnw ];
    # SQLAlchemy >= 2.0.0 is unsupported
    # https://github.com/pudo/dataset/issues/411
    broken = lib.versionAtLeast sqlalchemy.version "2.0.0";
  };
}