Files
nixpkgs/pkgs/development/python-modules/devpi-common/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

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
lazy,
packaging-legacy,
pytestCheckHook,
pythonOlder,
requests,
setuptools-changelog-shortener,
setuptools,
tomli,
nix-update-script,
}:
buildPythonPackage rec {
pname = "devpi-common";
version = "4.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "devpi-common";
inherit version;
hash = "sha256-WNf3YeP+f9/kScSmqeI1DU3fvrZssPbSCAJRQpQwMNM=";
};
build-system = [
setuptools
setuptools-changelog-shortener
];
dependencies = [
lazy
packaging-legacy
requests
tomli
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "devpi_common" ];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/devpi/devpi";
description = "Utilities jointly used by devpi-server and devpi-client";
changelog = "https://github.com/devpi/devpi/blob/common-${version}/common/CHANGELOG";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
lewo
makefu
];
};
}