Merge pull request #314778 from natsukium/clint/refactor

python311Packages.clint: refactor and clean up dependencies
This commit is contained in:
OTABI Tomoya
2024-06-05 10:58:18 +09:00
committed by GitHub
@@ -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" ];