python312Packages.swh-web-client: init at 0.9.0

This commit is contained in:
Pol Dellaiera
2025-03-27 14:07:00 +01:00
parent 012061fe94
commit 7c04f0b5a7
2 changed files with 68 additions and 0 deletions
@@ -0,0 +1,66 @@
{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
setuptools-scm,
click,
dateutils,
requests,
swh-auth,
swh-core,
swh-model,
pytestCheckHook,
pytest-mock,
requests-mock,
types-python-dateutil,
types-pyyaml,
types-requests,
}:
buildPythonPackage rec {
pname = "swh-web-client";
version = "0.9.0";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.softwareheritage.org";
group = "swh";
owner = "devel";
repo = "swh-web-client";
tag = "v${version}";
hash = "sha256-/h3TaEwo2+B89KFpIKi9LH0tlGplsv3y18pC0TKM0jA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
click
dateutils
requests
swh-auth
swh-core
swh-model
];
pythonImportsCheck = [ "swh.web.client" ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
requests-mock
types-python-dateutil
types-pyyaml
types-requests
];
meta = {
description = "Client for Software Heritage Web applications, via their APIs";
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-web-client";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ drupol ];
};
}
+2
View File
@@ -17355,6 +17355,8 @@ self: super: with self; {
swh-model = callPackage ../development/python-modules/swh-model { };
swh-web-client = callPackage ../development/python-modules/swh-web-client { };
swift = callPackage ../development/python-modules/swift { };
swifter = callPackage ../development/python-modules/swifter { };