1{ lib, buildPythonPackage, fetchPypi
2, requests
3, py
4, pytestCheckHook
5, lazy
6}:
7
8buildPythonPackage rec {
9 pname = "devpi-common";
10 version = "3.7.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-kHiYknmteenBgce63EpzhGBEUYcQHrDLreZ1k01eRkQ=";
15 };
16
17 postPatch = ''
18 substituteInPlace tox.ini \
19 --replace "--flake8" ""
20 '';
21
22 propagatedBuildInputs = [
23 requests
24 py
25 lazy
26 ];
27
28 nativeCheckInputs = [
29 py
30 pytestCheckHook
31 ];
32
33 meta = with lib; {
34 homepage = "https://github.com/devpi/devpi";
35 description = "Utilities jointly used by devpi-server and devpi-client";
36 license = licenses.mit;
37 maintainers = with maintainers; [ lewo makefu ];
38 # It fails to build because it depends on packaging <22 while we
39 # use packaging >22.
40 # See the following issues for details:
41 # - https://github.com/NixOS/nixpkgs/issues/231346
42 # - https://github.com/devpi/devpi/issues/939
43 broken = true;
44 };
45}