2024-06-05 15:53:02 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
flit-core,
|
|
|
|
|
arrow,
|
|
|
|
|
six,
|
|
|
|
|
hypothesis,
|
|
|
|
|
pytestCheckHook,
|
|
|
|
|
pythonOlder,
|
2020-11-09 15:59:12 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "inform";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
version = "1.29";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
format = "pyproject";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "KenKundert";
|
|
|
|
|
repo = "inform";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
hash = "sha256-quJGgXMvVZGqZA6M/AjU/cjYeL0R2nuPDoL0Ji0Ow6I=";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
arrow
|
|
|
|
|
six
|
|
|
|
|
];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
|
pytestCheckHook
|
|
|
|
|
hypothesis
|
|
|
|
|
];
|
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
disabledTests = [ "test_prostrate" ];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Print and logging utilities";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Inform is designed to display messages from programs that are typically
|
|
|
|
|
run from a console. It provides a collection of ‘print’ functions that
|
|
|
|
|
allow you to simply and cleanly print different types of messages.
|
|
|
|
|
'';
|
|
|
|
|
homepage = "https://inform.readthedocs.io";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
changelog = "https://github.com/KenKundert/inform/blob/v${version}/doc/releases.rst";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
|
maintainers = with maintainers; [ jeremyschlatter ];
|
|
|
|
|
};
|
|
|
|
|
}
|