nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 918 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromCodeberg, 5 beautifulsoup4, 6 httpx, 7 pytest-asyncio, 8 pytest-httpserver, 9 pytest-mock, 10 pytestCheckHook, 11 setuptools, 12}: 13 14buildPythonPackage (finalAttrs: { 15 pname = "pyimgbox"; 16 version = "1.0.7"; 17 pyproject = true; 18 19 src = fetchFromCodeberg { 20 owner = "plotski"; 21 repo = "pyimgbox"; 22 tag = "v${finalAttrs.version}"; 23 hash = "sha256-HYKi5nYXJ+5ytQEFVMMm1HxEsD1zMU7cE2mOdwuZxvk="; 24 }; 25 26 build-system = [ 27 setuptools 28 ]; 29 30 dependencies = [ 31 httpx 32 beautifulsoup4 33 ]; 34 35 nativeCheckInputs = [ 36 pytest-asyncio 37 pytest-httpserver 38 pytest-mock 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "pyimgbox" ]; 43 44 meta = { 45 description = "API for uploading images to imgbox.com"; 46 homepage = "https://codeberg.org/plotski/pyimgbox"; 47 license = lib.licenses.gpl3Plus; 48 maintainers = with lib.maintainers; [ ambroisie ]; 49 }; 50})