From ff41191d8f85dc8ffe1dde9bb5c06270a904b506 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 31 Mar 2022 23:12:37 +0200 Subject: [PATCH] python3Packages.parsimonious: fix build, use pytestCheckHook --- .../python-modules/parsimonious/default.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/parsimonious/default.nix b/pkgs/development/python-modules/parsimonious/default.nix index 8f1ac75d92f0..ccffbc5a2819 100644 --- a/pkgs/development/python-modules/parsimonious/default.nix +++ b/pkgs/development/python-modules/parsimonious/default.nix @@ -1,24 +1,33 @@ { lib , buildPythonPackage , fetchPypi -, nose -, six +, regex +, pytestCheckHook }: buildPythonPackage rec { - version = "0.9.0"; pname = "parsimonious"; + version = "0.9.0"; + format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "sha256-sq0a5jovZb149eCorFEKmPNgekPx2yqNRmNqXZ5KMME="; }; - checkInputs = [ nose ]; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + regex + ]; - # performance tests tend to fail sometimes - NOSE_EXCLUDE = "test_benchmarks"; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "parsimonious" + "parsimonious.grammar" + "parsimonious.nodes" + ]; meta = with lib; { homepage = "https://github.com/erikrose/parsimonious";