nixpkgs/pkgs/development/python-modules/stups-cli-support/default.nix
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

44 lines
860 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
clickclick,
dnspython,
requests,
pytestCheckHook,
isPy3k,
}:
buildPythonPackage rec {
pname = "stups-cli-support";
version = "1.1.22";
pyproject = true;
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "stups-cli-support";
rev = version;
sha256 = "sha256-/UsQzV1Ljd+K8AIj55UmiVXAshX+rUbYxFeSK7YGgn8=";
};
build-system = [ setuptools ];
dependencies = [
clickclick
dnspython
requests
];
preCheck = "export HOME=$TEMPDIR";
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Helper library for all STUPS command line tools";
homepage = "https://github.com/zalando-stups/stups-cli-support";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.mschuwalow ];
};
}