Files
nixpkgs/pkgs/development/python-modules/dataset/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
980 B
Nix

{
lib,
setuptools,
alembic,
banal,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
sqlalchemy_1_4,
}:
buildPythonPackage rec {
pname = "dataset";
version = "1.6.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pudo";
repo = "dataset";
tag = version;
hash = "sha256-hu1Qa5r3eT+xHFrCuYyJ9ZWvyoJBsisO34zvkch65Tc=";
};
build-system = [
setuptools
];
dependencies = [
(alembic.override { sqlalchemy = sqlalchemy_1_4; })
banal
# SQLAlchemy >= 2.0.0 is unsupported
# https://github.com/pudo/dataset/issues/411
sqlalchemy_1_4
];
# 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 ];
};
}