From 5953f6926f2d99b2056aa6513a9545e0b1b9d1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 11 Dec 2022 20:56:55 -0800 Subject: [PATCH] python310Packages.bashlex: 0.15 -> 0.16 --- .../python-modules/bashlex/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/bashlex/default.nix b/pkgs/development/python-modules/bashlex/default.nix index 0ee12c414804..f850c5640c65 100644 --- a/pkgs/development/python-modules/bashlex/default.nix +++ b/pkgs/development/python-modules/bashlex/default.nix @@ -1,33 +1,31 @@ -{ enum-compat -, lib +{ lib , buildPythonPackage , fetchFromGitHub -, nose , python +, pytestCheckHook }: buildPythonPackage rec { pname = "bashlex"; - version = "0.15"; + version = "0.16"; + + format = "setuptools"; src = fetchFromGitHub { owner = "idank"; repo = pname; rev = version; - sha256 = "sha256-kKVorAIKlyC9vUzLOlaZ/JrG1kBBRIvLwBmHNj9nx84="; + hash = "sha256-vpcru/ax872WK3XuRQWTmTD9zRdObn2Bit6kY9ZIQaI="; }; - checkInputs = [ nose ]; - propagatedBuildInputs = [ enum-compat ]; - # workaround https://github.com/idank/bashlex/issues/51 preBuild = '' ${python.interpreter} -c 'import bashlex' ''; - checkPhase = '' - ${python.interpreter} -m nose --with-doctest - ''; + checkInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "bashlex" ];