nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 setuptools,
4 alembic,
5 banal,
6 buildPythonPackage,
7 fetchFromGitHub,
8 sqlalchemy,
9}:
10
11buildPythonPackage rec {
12 pname = "dataset";
13 version = "1.6.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pudo";
18 repo = "dataset";
19 tag = version;
20 hash = "sha256-hu1Qa5r3eT+xHFrCuYyJ9ZWvyoJBsisO34zvkch65Tc=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 alembic
29 banal
30 sqlalchemy
31 ];
32
33 # checks attempt to import nonexistent module 'test.test' and fail
34 doCheck = false;
35
36 pythonImportsCheck = [ "dataset" ];
37
38 meta = {
39 description = "Toolkit for Python-based database access";
40 homepage = "https://dataset.readthedocs.io";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ xfnw ];
43 # SQLAlchemy >= 2.0.0 is unsupported
44 # https://github.com/pudo/dataset/issues/411
45 broken = lib.versionAtLeast sqlalchemy.version "2.0.0";
46 };
47}