2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
devpi-server,
|
|
|
|
git,
|
|
|
|
glibcLocales,
|
|
|
|
python3,
|
|
|
|
fetchPypi,
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "devpi-client";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "7.0.3";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2024-05-15 15:35:15 +00:00
|
|
|
pname = "devpi_client";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-5aF6EIFnhfywDeAfWSN+eZUpaO6diPCP5QHT11Y/IQI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = with python3.pkgs; [
|
2023-10-19 13:55:26 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-changelog-shortener
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
buildInputs = [ glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2023-03-04 12:14:45 +00:00
|
|
|
build
|
2022-03-05 16:20:37 +00:00
|
|
|
check-manifest
|
|
|
|
devpi-common
|
2023-03-04 12:14:45 +00:00
|
|
|
iniconfig
|
2022-03-05 16:20:37 +00:00
|
|
|
pkginfo
|
|
|
|
pluggy
|
2023-03-04 12:14:45 +00:00
|
|
|
platformdirs
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs =
|
|
|
|
[
|
|
|
|
devpi-server
|
|
|
|
git
|
|
|
|
]
|
|
|
|
++ (with python3.pkgs; [
|
|
|
|
mercurial
|
|
|
|
mock
|
|
|
|
pypitoken
|
|
|
|
pytestCheckHook
|
|
|
|
sphinx
|
|
|
|
virtualenv
|
|
|
|
webtest
|
|
|
|
wheel
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# --fast skips tests which try to start a devpi-server improperly
|
|
|
|
"--fast"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "devpi" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Client for devpi, a pypi index server and packaging meta tool";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "http://doc.devpi.net";
|
|
|
|
changelog = "https://github.com/devpi/devpi/blob/client-${version}/client/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
lewo
|
|
|
|
makefu
|
|
|
|
];
|
|
|
|
mainProgram = "devpi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|