2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
asttokens,
|
|
|
|
colorama,
|
|
|
|
executing,
|
|
|
|
pygments,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "icecream";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.1.3";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-CqSnwzdOw2FTodCPgeMIDoPYrB7v2X0vT+lUTo+bSd4=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/test_icecream.py \
|
|
|
|
--replace assertRegexpMatches assertRegex
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asttokens
|
|
|
|
colorama
|
|
|
|
executing
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# icecream.icecream.NoSourceAvailableError
|
|
|
|
"testSingledispatchArgumentToString"
|
|
|
|
# AssertionError: assert [[('REPL (e.g...ion?', None)]] == [[('a', '1')], [('c', '3')]]
|
|
|
|
"testEnableDisable"
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Little library for sweet and creamy print debugging";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/gruns/icecream";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ renatoGarcia ];
|
|
|
|
};
|
|
|
|
}
|