diff --git a/pkgs/development/python-modules/grip/default.nix b/pkgs/development/python-modules/grip/default.nix index 1a689426877d..56f25b285b23 100644 --- a/pkgs/development/python-modules/grip/default.nix +++ b/pkgs/development/python-modules/grip/default.nix @@ -4,6 +4,7 @@ fetchpatch, # Python bits: buildPythonPackage, + setuptools, pytest, responses, docopt, @@ -15,15 +16,17 @@ tabulate, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "grip"; version = "4.6.1"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "joeyespo"; repo = "grip"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-CHL2dy0H/i0pLo653F7aUHFvZHTeZA6jC/rwn1KrEW4="; }; @@ -36,12 +39,14 @@ buildPythonPackage rec { }) ]; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytest responses ]; - propagatedBuildInputs = [ + dependencies = [ docopt flask markdown @@ -56,6 +61,8 @@ buildPythonPackage rec { py.test -xm "not assumption" ''; + pythonImportsCheck = [ "grip" ]; + meta = { description = "Preview GitHub Markdown files like Readme locally before committing them"; mainProgram = "grip"; @@ -63,4 +70,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ koral ]; }; -} +})