diff --git a/pkgs/development/python-modules/panflute/default.nix b/pkgs/development/python-modules/panflute/default.nix index 2e5cd4621c56..4e91756e647e 100644 --- a/pkgs/development/python-modules/panflute/default.nix +++ b/pkgs/development/python-modules/panflute/default.nix @@ -3,18 +3,19 @@ , click , pyyaml , buildPythonPackage -, isPy3k +, pythonOlder }: buildPythonPackage rec{ - version = "2.1.5"; pname = "panflute"; + version = "2.1.5"; + format = "setuptools"; - disabled = !isPy3k; - + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-7xHcWVoZh51PlonvmoOCBKJGNMpjT7z8jkoO1B65EqE="; + hash = "sha256-7xHcWVoZh51PlonvmoOCBKJGNMpjT7z8jkoO1B65EqE="; }; propagatedBuildInputs = [ @@ -22,8 +23,12 @@ buildPythonPackage rec{ pyyaml ]; + pythonImportsCheck = [ + "panflute" + ]; + meta = with lib; { - description = "A Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions"; + description = "Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions"; homepage = "http://scorreia.com/software/panflute"; license = licenses.bsd3; maintainers = with maintainers; [ synthetica ];