2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, devpi-server
|
|
|
|
, git
|
2020-04-24 23:36:52 +00:00
|
|
|
, glibcLocales
|
2023-03-04 12:14:45 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, 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-02-07 01:22:34 +00:00
|
|
|
version = "7.0.2";
|
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 {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-oOX5Z8WXgNJYsgXqHE2CsXdDnA3XmDF6axD1D318bPQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
setuptools-changelog-shortener
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
devpi-server
|
|
|
|
git
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ (with python3.pkgs; [
|
2022-03-05 16:20:37 +00:00
|
|
|
mercurial
|
|
|
|
mock
|
2023-03-04 12:14:45 +00:00
|
|
|
pypitoken
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
sphinx
|
2023-03-04 12:14:45 +00:00
|
|
|
virtualenv
|
2022-03-05 16:20:37 +00:00
|
|
|
webtest
|
|
|
|
wheel
|
2023-03-04 12:14:45 +00:00
|
|
|
]);
|
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;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"devpi"
|
|
|
|
];
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "devpi";
|
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;
|
|
|
|
maintainers = with maintainers; [ lewo makefu ];
|
|
|
|
};
|
|
|
|
}
|