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