1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 setuptools, 6 setuptools-scm, 7 click, 8 dateutils, 9 requests, 10 swh-auth, 11 swh-core, 12 swh-model, 13 pytestCheckHook, 14 pytest-mock, 15 requests-mock, 16 types-python-dateutil, 17 types-pyyaml, 18 types-requests, 19}: 20 21buildPythonPackage rec { 22 pname = "swh-web-client"; 23 version = "0.9.1"; 24 pyproject = true; 25 26 src = fetchFromGitLab { 27 domain = "gitlab.softwareheritage.org"; 28 group = "swh"; 29 owner = "devel"; 30 repo = "swh-web-client"; 31 tag = "v${version}"; 32 hash = "sha256-JTVu3fCYEDMWAqGwK+0a2AVyJv5DSGfItEss9CbzsRg="; 33 }; 34 35 build-system = [ 36 setuptools 37 setuptools-scm 38 ]; 39 40 dependencies = [ 41 click 42 dateutils 43 requests 44 swh-auth 45 swh-core 46 swh-model 47 ]; 48 49 pythonImportsCheck = [ "swh.web.client" ]; 50 51 nativeCheckInputs = [ 52 pytestCheckHook 53 pytest-mock 54 requests-mock 55 types-python-dateutil 56 types-pyyaml 57 types-requests 58 ]; 59 60 meta = { 61 description = "Client for Software Heritage Web applications, via their APIs"; 62 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-web-client"; 63 license = lib.licenses.gpl3Only; 64 maintainers = with lib.maintainers; [ ]; 65 }; 66}