diff --git a/pkgs/development/python-modules/apsw/default.nix b/pkgs/development/python-modules/apsw/default.nix index bdd640a4ce50..327a67d0e3fb 100644 --- a/pkgs/development/python-modules/apsw/default.nix +++ b/pkgs/development/python-modules/apsw/default.nix @@ -1,17 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, sqlite -, isPyPy -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, + sqlite, }: buildPythonPackage rec { pname = "apsw"; version = "3.45.2.0"; - format = "setuptools"; + pyproject = true; - disabled = isPyPy; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "rogerbinns"; @@ -20,9 +22,9 @@ buildPythonPackage rec { hash = "sha256-tTi3/10W4OoGH6PQVhvPWc5o09on5BZrWoAvrfh4C/E="; }; - buildInputs = [ - sqlite - ]; + build-system = [ setuptools ]; + + buildInputs = [ sqlite ]; # Project uses custom test setup to exclude some tests by default, so using pytest # requires more maintenance @@ -31,13 +33,12 @@ buildPythonPackage rec { ${python.interpreter} setup.py test ''; - pythonImportsCheck = [ - "apsw" - ]; + pythonImportsCheck = [ "apsw" ]; meta = with lib; { description = "A Python wrapper for the SQLite embedded relational database engine"; homepage = "https://github.com/rogerbinns/apsw"; + changelog = "https://github.com/rogerbinns/apsw/releases/tag/${version}"; license = licenses.zlib; maintainers = with maintainers; [ gador ]; };