Files
nixpkgs/pkgs/development/python-modules/dohq-artifactory/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
setuptools,
requests,
python-dateutil,
pyjwt,
pytestCheckHook,
responses,
nix-update-script,
}:
buildPythonPackage rec {
pname = "dohq-artifactory";
version = "1.0.1";
src = fetchFromGitHub {
owner = "devopshq";
repo = "artifactory";
tag = version;
hash = "sha256-oGv7sZWi/e9WWa5W82pJ6d8S2d2e9gaoGZ3P/97IWoI=";
};
# https://github.com/devopshq/artifactory/issues/470
disabled = pythonAtLeast "3.13";
pyproject = true;
build-system = [ setuptools ];
dependencies = [
requests
python-dateutil
pyjwt
];
pythonImportsCheck = [ "artifactory" ];
nativeCheckInputs = [
pytestCheckHook
responses
];
enabledTestPaths = [ "tests/unit" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Python interface library for JFrog Artifactory";
homepage = "https://devopshq.github.io/artifactory/";
changelog = "https://github.com/devopshq/artifactory/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ h7x4 ];
};
}