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