From c96db157d3311fc0d7bb48a205277878258a850b Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 26 May 2024 15:45:27 +0900 Subject: [PATCH] python311Packages.clint: refactor and clean up dependencies --- .../python-modules/clint/default.nix | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/pkgs/development/python-modules/clint/default.nix b/pkgs/development/python-modules/clint/default.nix index 33a676719c4a869..87bc6568c58736c 100644 --- a/pkgs/development/python-modules/clint/default.nix +++ b/pkgs/development/python-modules/clint/default.nix @@ -2,45 +2,26 @@ lib, buildPythonPackage, fetchPypi, - python, - mock, - blessings, - nose, - pillow, + setuptools, + pytestCheckHook, args, - pkgs, }: buildPythonPackage rec { pname = "clint"; version = "0.5.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"; + hash = "sha256-BSJMMrEHVWPQsW0AFfqvnaQ6ohTkohQOUfCHieekxao="; }; - LC_ALL = "en_US.UTF-8"; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - pillow - blessings - args - ]; + dependencies = [ args ]; - # nose-progressive and clint are not actively maintained - # no longer compatible as behavior demand 2to3, which was removed - # in setuptools>=58 - doCheck = false; - nativeCheckInputs = [ - mock - nose - pkgs.glibcLocales - ]; - checkPhase = '' - ${python.interpreter} test_clint.py - ''; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "clint" ];