Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 1.1 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, arrow 3, six 4, hypothesis 5, pytest 6, pytestrunner 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "inform"; 12 version = "1.23"; 13 14 src = fetchFromGitHub { 15 owner = "KenKundert"; 16 repo = "inform"; 17 rev = "v${version}"; 18 sha256 = "02zlprvidkz51aypss4knhv7dbr0sbpz3caqjzf9am2n1jx2viyy"; 19 }; 20 21 nativeBuildInputs = [ pytestrunner ]; 22 propagatedBuildInputs = [ arrow six ]; 23 24 checkInputs = [ pytest hypothesis ]; 25 checkPhase = '' 26 patchShebangs test.doctests.py test.inform.py 27 ./test.doctests.py && ./test.inform.py && pytest 28 ''; 29 30 meta = with lib; { 31 description = "Print and logging utilities"; 32 longDescription = '' 33 Inform is designed to display messages from programs that are typically 34 run from a console. It provides a collection of print functions that 35 allow you to simply and cleanly print different types of messages. 36 ''; 37 homepage = "https://inform.readthedocs.io"; 38 license = licenses.gpl3Only; 39 maintainers = with maintainers; [ jeremyschlatter ]; 40 }; 41}