2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
2022-04-27 09:35:20 +00:00
|
|
|
, alembic
|
|
|
|
, banal
|
2022-01-19 23:45:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2022-01-19 23:45:15 +00:00
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dataset";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "1.6.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-fNvJBdZjtYKvhGzwULfP2iDNUrqhxiwRlhlFrHfmGdU=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
alembic
|
|
|
|
banal
|
|
|
|
sqlalchemy
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# checks attempt to import nonexistent module 'test.test' and fail
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dataset"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Toolkit for Python-based database access";
|
|
|
|
homepage = "https://dataset.readthedocs.io";
|
|
|
|
license = licenses.mit;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ xfnw ];
|
2023-05-24 13:37:59 +00:00
|
|
|
# SQLAlchemy >= 2.0.0 is unsupported
|
|
|
|
# https://github.com/pudo/dataset/issues/411
|
|
|
|
broken = true;
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
}
|