bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
58 lines
1.1 KiB
Nix
58 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.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CqSnwzdOw2FTodCPgeMIDoPYrB7v2X0vT+lUTo+bSd4=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
description = "Little library for sweet and creamy print debugging";
|
|
homepage = "https://github.com/gruns/icecream";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ renatoGarcia ];
|
|
};
|
|
}
|