about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aspell-python/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/aspell-python/default.nix')
-rw-r--r--pkgs/development/python-modules/aspell-python/default.nix38
1 files changed, 17 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/aspell-python/default.nix b/pkgs/development/python-modules/aspell-python/default.nix
index 1af34b43fc291..37c708bed5c07 100644
--- a/pkgs/development/python-modules/aspell-python/default.nix
+++ b/pkgs/development/python-modules/aspell-python/default.nix
@@ -1,17 +1,19 @@
-{ lib
-, aspell
-, aspellDicts
-, buildPythonPackage
-, fetchPypi
-, isPy27
-, pytestCheckHook
-, pythonAtLeast
+{
+  lib,
+  aspell,
+  aspellDicts,
+  buildPythonPackage,
+  fetchPypi,
+  isPy27,
+  pytestCheckHook,
+  pythonAtLeast,
+  setuptools,
 }:
 
 buildPythonPackage rec {
   pname = "aspell-python";
   version = "1.15";
-  format = "setuptools";
+  pyproject = true;
 
   disabled = isPy27;
 
@@ -22,22 +24,18 @@ buildPythonPackage rec {
     hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40=";
   };
 
-  buildInputs = [
-    aspell
-  ];
+  build-system = [ setuptools ];
 
-  nativeCheckInputs = [
-    pytestCheckHook
-  ];
+  buildInputs = [ aspell ];
+
+  nativeCheckInputs = [ pytestCheckHook ];
 
   preCheck = ''
     export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
     export HOME=$(mktemp -d)
   '';
 
-  pytestFlagsArray = [
-    "test/unittests.py"
-  ];
+  pytestFlagsArray = [ "test/unittests.py" ];
 
   disabledTests = lib.optionals (pythonAtLeast "3.10") [
     # https://github.com/WojciechMula/aspell-python/issues/22
@@ -46,9 +44,7 @@ buildPythonPackage rec {
     "test_saveall"
   ];
 
-  pythonImportsCheck = [
-    "aspell"
-  ];
+  pythonImportsCheck = [ "aspell" ];
 
   meta = with lib; {
     description = "Python wrapper for aspell (C extension and Python version)";