diff --git a/pkgs/development/python-modules/oslex/default.nix b/pkgs/development/python-modules/oslex/default.nix index 5eeec6baab23..b5f8a215b6aa 100644 --- a/pkgs/development/python-modules/oslex/default.nix +++ b/pkgs/development/python-modules/oslex/default.nix @@ -4,18 +4,19 @@ fetchFromGitHub, hatchling, mslex, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "oslex"; - version = "0.1.3"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "petamas"; repo = "oslex"; - tag = "release/v${version}"; - hash = "sha256-OcmBtxGS1Cq2kEcxF0Il62LUGbAAcG4lieokr/nK2/4="; + tag = "release/v${finalAttrs.version}"; + hash = "sha256-BTyLL3tb1P8VMGvTgoHGmwvFqf3gOyXOI+YmHuEjrKc="; }; build-system = [ @@ -26,6 +27,10 @@ buildPythonPackage rec { mslex ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "oslex" ]; @@ -36,4 +41,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ yzx9 ]; }; -} +})