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