From 29d51a6baff3bc52b28cade0fbe60a9bf2d50e1b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 19 Nov 2022 10:07:18 +0100 Subject: [PATCH] python3Packages.pypandoc: add pythonImportsCheck --- .../python-modules/pypandoc/default.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pypandoc/default.nix b/pkgs/development/python-modules/pypandoc/default.nix index 2b2793e535e8..87cfe2708dfd 100644 --- a/pkgs/development/python-modules/pypandoc/default.nix +++ b/pkgs/development/python-modules/pypandoc/default.nix @@ -1,11 +1,19 @@ -{ lib, substituteAll, buildPythonPackage, fetchFromGitHub -, pandoc, pandocfilters, texlive +{ lib +, buildPythonPackage +, fetchFromGitHub +, pandoc +, pandocfilters +, pythonOlder +, substituteAll +, texlive }: buildPythonPackage rec { pname = "pypandoc"; version = "1.10"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "JessicaTegner"; repo = pname; @@ -27,6 +35,10 @@ buildPythonPackage rec { pandocfilters ]; + pythonImportsCheck = [ + "pypandoc" + ]; + meta = with lib; { description = "Thin wrapper for pandoc"; homepage = "https://github.com/JessicaTegner/pypandoc";