Skip to content

Commit

Permalink
Merge pull request #314778 from natsukium/clint/refactor
Browse files Browse the repository at this point in the history
python311Packages.clint: refactor and clean up dependencies
  • Loading branch information
natsukium authored Jun 5, 2024
2 parents 5b03a92 + c96db15 commit 4a07c5b
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions pkgs/development/python-modules/clint/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];

Expand Down

0 comments on commit 4a07c5b

Please sign in to comment.