python312Packages.databases: refactor

This commit is contained in:
Fabian Affolter 2024-03-02 09:42:06 +01:00 committed by GitHub
parent 80843b2e6a
commit 7dee15db56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,23 +8,28 @@
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, sqlalchemy
}:
buildPythonPackage rec {
pname = "databases";
version = "0.9.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
repo = "databases";
rev = "refs/tags/${version}";
hash = "sha256-Zf9QqBgDhWAnHdNvzjXtri5rdT00BOjc4YTNzJALldM=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
sqlalchemy
];
@ -78,7 +83,5 @@ buildPythonPackage rec {
changelog = "https://github.com/encode/databases/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
# https://github.com/encode/databases/issues/530
broken = lib.versionAtLeast sqlalchemy.version "2.0.0";
};
}