Merge pull request #323846 from h7x4/pkgs-init-python-dohq-artifactory

python3Packages.dohq-artifactory: init at 0.10.0
This commit is contained in:
OTABI Tomoya 2024-07-16 22:36:55 +09:00 committed by GitHub
commit de7452d3fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{
lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, setuptools
, requests
, python-dateutil
, pyjwt
, pytestCheckHook
, responses
, nix-update-script
}:
buildPythonPackage rec {
pname = "dohq-artifactory";
version = "0.10.0";
src = fetchFromGitHub {
owner = "devopshq";
repo = "artifactory";
rev = version;
hash = "sha256-gccVwshGBgbhTSX4o0vANIRct1isqDj+gWeZZxExj9Q=";
};
# https://github.com/devopshq/artifactory/issues/430
disabled = pythonAtLeast "3.12";
pyproject = true;
build-system = [ setuptools ];
dependencies = [
requests
python-dateutil
pyjwt
];
pythonImportsCheck = [ "artifactory" ];
nativeCheckInputs = [
pytestCheckHook
responses
];
pytestFlagsArray = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Python interface library for JFrog Artifactory";
homepage = "https://devopshq.github.io/artifactory/";
changelog = "https://github.com/devopshq/artifactory/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ h7x4 ];
};
}

View File

@ -3559,6 +3559,8 @@ self: super: with self; {
dogtail = callPackage ../development/python-modules/dogtail { };
dohq-artifactory = callPackage ../development/python-modules/dohq-artifactory { };
doit = callPackage ../development/python-modules/doit { };
doit-py = callPackage ../development/python-modules/doit-py { };