From 8f6436a82585450cb283ea0d3d10f8d05e9d40ea Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Wed, 9 Sep 2020 22:07:05 -0400 Subject: [PATCH] python3Packages.parso: disable on python 2.7 * Disabled on python 2.7 * Updated meta * Changed to pytestCheckHook --- pkgs/development/python-modules/parso/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/parso/default.nix b/pkgs/development/python-modules/parso/default.nix index 4ab09f5938ef..f9a87fa5f65f 100644 --- a/pkgs/development/python-modules/parso/default.nix +++ b/pkgs/development/python-modules/parso/default.nix @@ -1,24 +1,26 @@ { lib , buildPythonPackage , fetchPypi -, pytest +, pythonOlder +, pytestCheckHook }: buildPythonPackage rec { pname = "parso"; version = "0.8.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; sha256 = "2b6db14759c528d857eeb9eac559c2166b2554548af39f5198bdfb976f72aa64"; }; - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; - meta = { + meta = with lib; { description = "A Python Parser"; - homepage = "https://github.com/davidhalter/parso"; - license = lib.licenses.mit; + homepage = "https://parso.readthedocs.io/en/latest/"; + changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst"; + license = licenses.mit; }; - }