nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 37 lines 801 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "print-color"; 11 version = "0.4.6"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "xy3"; 16 repo = "print-color"; 17 tag = "v${version}"; 18 hash = "sha256-PHPbzzWG7smEsoTFYFT2tgXfCxUYjevpB9rxG2bZVy4="; 19 }; 20 21 build-system = [ poetry-core ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "print_color" ]; 26 27 meta = { 28 description = "Module to print color messages in the terminal"; 29 homepage = "https://github.com/xy3/print-color"; 30 changelog = "https://github.com/xy3/print-color/releases/tag/v${version}"; 31 license = with lib.licenses; [ 32 asl20 33 mit 34 ]; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37}