at 23.05-pre 1.1 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, arrow 3, six 4, hypothesis 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "inform"; 10 version = "1.26"; 11 12 src = fetchFromGitHub { 13 owner = "KenKundert"; 14 repo = "inform"; 15 rev = "v${version}"; 16 sha256 = "0snrmvmc3rnz90cql5ayzs878rrkadk46rhvf2sn78nb0x57wa20"; 17 }; 18 19 postPatch = '' 20 substituteInPlace setup.py \ 21 --replace "pytest-runner>=2.0" "" 22 ''; 23 24 propagatedBuildInputs = [ arrow six ]; 25 26 checkInputs = [ pytestCheckHook hypothesis ]; 27 preCheck = '' 28 patchShebangs test.doctests.py test.inform.py 29 ./test.doctests.py 30 ./test.inform.py 31 ''; 32 33 meta = with lib; { 34 description = "Print and logging utilities"; 35 longDescription = '' 36 Inform is designed to display messages from programs that are typically 37 run from a console. It provides a collection of print functions that 38 allow you to simply and cleanly print different types of messages. 39 ''; 40 homepage = "https://inform.readthedocs.io"; 41 license = licenses.gpl3Only; 42 maintainers = with maintainers; [ jeremyschlatter ]; 43 }; 44}