nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

bili-live-tool: init at 0.3.9 (#433889)

authored by

Sandro and committed by
GitHub
72db901e 5ed80170

+103
+61
pkgs/by-name/bi/bili-live-tool/package.nix
··· 1 + { 2 + lib, 3 + python3Packages, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + }: 7 + 8 + let 9 + version = "0.3.9"; 10 + in 11 + python3Packages.buildPythonApplication { 12 + pname = "bili-live-tool"; 13 + inherit version; 14 + 15 + src = fetchFromGitHub { 16 + owner = "chenxi-Eumenides"; 17 + repo = "bilibili_live_tool"; 18 + tag = "v${version}"; 19 + hash = "sha256-gNzR9cDy4sixQOSWAXeX5qOoGkaFOjBU//+iHvG0lG8="; 20 + }; 21 + 22 + postPatch = '' 23 + tee >> pyproject.toml <<TOML 24 + [tool.setuptools] 25 + packages = ["src"] 26 + TOML 27 + ''; 28 + 29 + pyproject = true; 30 + build-system = with python3Packages; [ setuptools ]; 31 + 32 + dependencies = with python3Packages; [ 33 + image 34 + pypinyin 35 + qrcode 36 + requests 37 + ]; 38 + 39 + preInstall = '' 40 + mkdir -p $out/bin 41 + { echo '#!/bin/python'; cat main_cli.py; } > $out/bin/bili-live-tool 42 + chmod +x $out/bin/bili-live-tool 43 + ''; 44 + 45 + nativeCheckInputs = with python3Packages; [ unittestCheckHook ]; 46 + unittestFlags = [ 47 + "-s" 48 + "unittest" 49 + "-v" 50 + ]; 51 + 52 + passthru.updateScript = nix-update-script { }; 53 + 54 + meta = { 55 + description = "Tool to start and stop streaming and getting streaming codes for Bilibili live"; 56 + homepage = "https://github.com/chenxi-Eumenides/bilibili_live_tool"; 57 + license = lib.licenses.mpl20; 58 + maintainers = with lib.maintainers; [ ulysseszhan ]; 59 + mainProgram = "bili-live-tool"; 60 + }; 61 + }
+40
pkgs/development/python-modules/image/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchPypi, 5 + setuptools, 6 + pillow, 7 + django, 8 + six, 9 + }: 10 + 11 + let 12 + pname = "image"; 13 + version = "1.5.33"; 14 + in 15 + buildPythonPackage rec { 16 + inherit pname version; 17 + 18 + src = fetchPypi { 19 + inherit pname version; 20 + hash = "sha256-uqLgkXgnfapQ8i/W0dUex48ZwSaIkhy5q1gIdD8JcSY="; 21 + }; 22 + 23 + pyproject = true; 24 + build-system = [ setuptools ]; 25 + 26 + dependencies = [ 27 + pillow 28 + django 29 + six 30 + ]; 31 + 32 + pythonImportsCheck = [ "image" ]; 33 + 34 + meta = { 35 + description = "Django application for image and video processing"; 36 + homepage = "https://github.com/francescortiz/image"; 37 + license = lib.licenses.bsd3; 38 + maintainers = with lib.maintainers; [ ulysseszhan ]; 39 + }; 40 + }
+2
pkgs/top-level/python-packages.nix
··· 7000 7000 7001 7001 ilua = callPackage ../development/python-modules/ilua { }; 7002 7002 7003 + image = callPackage ../development/python-modules/image { }; 7004 + 7003 7005 image-diff = callPackage ../development/python-modules/image-diff { }; 7004 7006 7005 7007 image-go-nord = callPackage ../development/python-modules/image-go-nord { };