diff --git a/pkgs/development/python-modules/interegular/default.nix b/pkgs/development/python-modules/interegular/default.nix index cc5a193a52c8..477cd8aaf0d2 100644 --- a/pkgs/development/python-modules/interegular/default.nix +++ b/pkgs/development/python-modules/interegular/default.nix @@ -2,23 +2,30 @@ lib, buildPythonPackage, fetchPypi, + setuptools, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "interegular"; version = "0.3.3"; - format = "setuptools"; + pyproject = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-2baXshs0iEcROZug8DdpFLgYmc5nADJIbQ0Eg0SnZgA="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "interegular" ]; + nativeCheckInputs = [ pytestCheckHook ]; + meta = { description = "Library to check a subset of python regexes for intersections"; homepage = "https://github.com/MegaIng/interegular"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ lach ]; }; -} +})