nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 arrow,
7 six,
8 hypothesis,
9 num2words,
10 pytestCheckHook,
11 pythonAtLeast,
12}:
13
14buildPythonPackage (finalAttrs: {
15 pname = "inform";
16 version = "1.36";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "KenKundert";
21 repo = "inform";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-x2xLEcywMaYhq/SWPVu48zTHJW3/MWujjr4y6/uEClU=";
24 };
25
26 build-system = [ flit-core ];
27
28 dependencies = [
29 arrow
30 six
31 ];
32
33 nativeCheckInputs = [
34 num2words
35 pytestCheckHook
36 hypothesis
37 ];
38
39 disabledTests = [
40 "test_prostrate"
41 ]
42 ++ lib.optionals (pythonAtLeast "3.13") [
43 # doctest runs one more test than expected
44 "test_inform"
45 ];
46
47 meta = {
48 description = "Print and logging utilities";
49 longDescription = ''
50 Inform is designed to display messages from programs that are typically
51 run from a console. It provides a collection of ‘print’ functions that
52 allow you to simply and cleanly print different types of messages.
53 '';
54 homepage = "https://inform.readthedocs.io";
55 changelog = "https://github.com/KenKundert/inform/blob/${finalAttrs.src.tag}/doc/releases.rst";
56 license = lib.licenses.gpl3Only;
57 maintainers = with lib.maintainers; [ jeremyschlatter ];
58 };
59})