1{
2 lib,
3 devpi-server,
4 git,
5 glibcLocales,
6 python3,
7 fetchPypi,
8}:
9
10python3.pkgs.buildPythonApplication rec {
11 pname = "devpi-client";
12 version = "7.0.3";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "devpi_client";
17 inherit version;
18 hash = "sha256-5aF6EIFnhfywDeAfWSN+eZUpaO6diPCP5QHT11Y/IQI=";
19 };
20
21 build-system = with python3.pkgs; [
22 setuptools
23 setuptools-changelog-shortener
24 ];
25
26 buildInputs = [ glibcLocales ];
27
28 dependencies = with python3.pkgs; [
29 build
30 check-manifest
31 devpi-common
32 iniconfig
33 pkginfo
34 pluggy
35 platformdirs
36 ];
37
38 nativeCheckInputs =
39 [
40 devpi-server
41 git
42 ]
43 ++ (with python3.pkgs; [
44 mercurial
45 mock
46 pypitoken
47 pytestCheckHook
48 sphinx
49 virtualenv
50 webtest
51 wheel
52 ]);
53
54 preCheck = ''
55 export HOME=$(mktemp -d);
56 '';
57
58 pytestFlagsArray = [
59 # --fast skips tests which try to start a devpi-server improperly
60 "--fast"
61 ];
62
63 LC_ALL = "en_US.UTF-8";
64
65 __darwinAllowLocalNetworking = true;
66
67 pythonImportsCheck = [ "devpi" ];
68
69 meta = with lib; {
70 description = "Client for devpi, a pypi index server and packaging meta tool";
71 homepage = "http://doc.devpi.net";
72 changelog = "https://github.com/devpi/devpi/blob/client-${version}/client/CHANGELOG";
73 license = licenses.mit;
74 maintainers = with maintainers; [
75 lewo
76 makefu
77 ];
78 mainProgram = "devpi";
79 };
80}