2023-01-20 10:41:00 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, flit-core
|
2020-11-09 15:59:12 +00:00
|
|
|
|
, arrow
|
|
|
|
|
, six
|
|
|
|
|
, hypothesis
|
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
|
, pythonOlder
|
2020-11-09 15:59:12 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "inform";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
version = "1.28";
|
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}";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
hash = "sha256-RA8/or3HTS/rQmG4A/Eg5j24YElaTEpnHa1yksARVMQ=";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-01-20 10:41:00 +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
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|