mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
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>
58 lines
1.1 KiB
Nix
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
|
|
];
|
|
};
|
|
}
|