472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
80 lines
1.4 KiB
Nix
80 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
devpi-server,
|
|
git,
|
|
glibcLocales,
|
|
python3,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "devpi-client";
|
|
version = "7.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "devpi_client";
|
|
inherit version;
|
|
hash = "sha256-NwbhrojxOJSpDvMk0MbAGCbjmS8z2g1ynW6zzgVvy/M=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
setuptools-changelog-shortener
|
|
];
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
build
|
|
check-manifest
|
|
devpi-common
|
|
iniconfig
|
|
pkginfo
|
|
pluggy
|
|
platformdirs
|
|
];
|
|
|
|
nativeCheckInputs =
|
|
[
|
|
devpi-server
|
|
git
|
|
]
|
|
++ (with python3.pkgs; [
|
|
mercurial
|
|
mock
|
|
pypitoken
|
|
pytestCheckHook
|
|
sphinx
|
|
virtualenv
|
|
webtest
|
|
wheel
|
|
]);
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
# --fast skips tests which try to start a devpi-server improperly
|
|
"--fast"
|
|
];
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "devpi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Client for devpi, a pypi index server and packaging meta tool";
|
|
homepage = "http://doc.devpi.net";
|
|
changelog = "https://github.com/devpi/devpi/blob/client-${version}/client/CHANGELOG";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
lewo
|
|
makefu
|
|
];
|
|
mainProgram = "devpi";
|
|
};
|
|
}
|