2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2022-03-03 12:16:27 +00:00
|
|
|
, devpi-server
|
|
|
|
, git
|
2017-12-04 14:35:55 +00:00
|
|
|
, glibcLocales
|
2023-02-25 09:42:36 +00:00
|
|
|
, python3
|
2023-05-25 12:52:27 +00:00
|
|
|
, fetchPypi
|
2020-06-03 06:59:29 +00:00
|
|
|
}:
|
2015-12-15 20:46:01 +00:00
|
|
|
|
2023-02-25 09:42:36 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2017-10-04 12:40:20 +00:00
|
|
|
pname = "devpi-client";
|
2023-10-13 14:17:57 +00:00
|
|
|
version = "7.0.0";
|
2023-10-13 14:17:06 +00:00
|
|
|
pyproject = true;
|
2023-02-25 09:42:36 +00:00
|
|
|
|
2023-05-25 12:52:27 +00:00
|
|
|
src = fetchPypi {
|
2017-10-04 12:40:20 +00:00
|
|
|
inherit pname version;
|
2023-10-13 14:17:57 +00:00
|
|
|
hash = "sha256-AI/GNubb7+nwz/vM6v/JoUtWup6rBJieKXtFQzrdPkE=";
|
2015-12-15 20:46:01 +00:00
|
|
|
};
|
2017-12-04 14:35:55 +00:00
|
|
|
|
2022-11-28 03:22:10 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2023-10-13 14:17:57 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
setuptools-changelog-shortener
|
|
|
|
wheel
|
2023-10-13 14:17:06 +00:00
|
|
|
];
|
|
|
|
|
2022-03-03 12:16:27 +00:00
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
];
|
2019-10-08 06:26:31 +00:00
|
|
|
|
2023-02-25 09:42:36 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
build
|
2022-03-03 12:16:27 +00:00
|
|
|
check-manifest
|
|
|
|
devpi-common
|
2023-02-25 09:42:36 +00:00
|
|
|
iniconfig
|
2022-03-03 12:16:27 +00:00
|
|
|
pkginfo
|
|
|
|
pluggy
|
2023-02-25 09:42:36 +00:00
|
|
|
platformdirs
|
2022-03-03 12:16:27 +00:00
|
|
|
];
|
2019-10-08 06:26:31 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-03 12:16:27 +00:00
|
|
|
devpi-server
|
|
|
|
git
|
2023-02-25 09:42:36 +00:00
|
|
|
] ++ (with python3.pkgs; [
|
2022-03-03 12:16:27 +00:00
|
|
|
mercurial
|
|
|
|
mock
|
2023-02-25 09:42:36 +00:00
|
|
|
pypitoken
|
2022-03-03 12:16:27 +00:00
|
|
|
pytestCheckHook
|
|
|
|
sphinx
|
2023-02-25 09:42:36 +00:00
|
|
|
virtualenv
|
2022-03-03 12:16:27 +00:00
|
|
|
webtest
|
|
|
|
wheel
|
2023-02-25 09:42:36 +00:00
|
|
|
]);
|
2019-10-08 06:26:31 +00:00
|
|
|
|
2022-03-03 12:16:27 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
2017-12-05 10:30:07 +00:00
|
|
|
'';
|
2016-04-14 12:06:32 +00:00
|
|
|
|
2022-03-03 12:16:27 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# --fast skips tests which try to start a devpi-server improperly
|
|
|
|
"--fast"
|
|
|
|
];
|
|
|
|
|
2016-10-17 14:24:15 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2016-04-14 12:06:32 +00:00
|
|
|
|
2021-05-25 21:01:36 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-10-13 14:17:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"devpi"
|
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2017-12-05 10:30:07 +00:00
|
|
|
description = "Client for devpi, a pypi index server and packaging meta tool";
|
2023-02-25 08:59:09 +00:00
|
|
|
homepage = "http://doc.devpi.net";
|
|
|
|
changelog = "https://github.com/devpi/devpi/blob/client-${version}/client/CHANGELOG";
|
2017-12-05 10:30:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lewo makefu ];
|
2015-12-15 20:46:01 +00:00
|
|
|
};
|
|
|
|
}
|