Files
nixpkgs/pkgs/development/python-modules/icecream/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
asttokens,
colorama,
executing,
pygments,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "icecream";
version = "2.1.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-FNIeM4MyammowaO88R+DKDRZ8NJp7OWvg/ziwNZj7+w=";
};
postPatch = ''
substituteInPlace tests/test_icecream.py \
--replace assertRegexpMatches assertRegex
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
asttokens
colorama
executing
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# icecream.icecream.NoSourceAvailableError
"testSingledispatchArgumentToString"
# AssertionError: assert [[('REPL (e.g...ion?', None)]] == [[('a', '1')], [('c', '3')]]
"testEnableDisable"
];
meta = {
description = "Little library for sweet and creamy print debugging";
homepage = "https://github.com/gruns/icecream";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ renatoGarcia ];
};
}