Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 784 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "colorful"; 10 version = "0.5.5"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "timofurrer"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-fgxbj1WE9JcGt+oEcBguL0wQEWIn5toRTLWsvCFO3k8="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "colorful" 28 ]; 29 30 meta = with lib; { 31 description = "Library for terminal string styling"; 32 homepage = "https://github.com/timofurrer/colorful"; 33 changelog = "https://github.com/timofurrer/colorful/releases/tag/v${version}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ kalbasit ]; 36 }; 37}