1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 lazy,
6 packaging-legacy,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10 setuptools-changelog-shortener,
11 setuptools,
12 tomli,
13 nix-update-script,
14}:
15
16buildPythonPackage rec {
17 pname = "devpi-common";
18 version = "4.1.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 pname = "devpi-common";
25 inherit version;
26 hash = "sha256-WNf3YeP+f9/kScSmqeI1DU3fvrZssPbSCAJRQpQwMNM=";
27 };
28
29 build-system = [
30 setuptools
31 setuptools-changelog-shortener
32 ];
33
34 dependencies = [
35 lazy
36 packaging-legacy
37 requests
38 tomli
39 ];
40
41 nativeCheckInputs = [ pytestCheckHook ];
42
43 pythonImportsCheck = [ "devpi_common" ];
44
45 passthru.updateScript = nix-update-script { };
46
47 meta = with lib; {
48 homepage = "https://github.com/devpi/devpi";
49 description = "Utilities jointly used by devpi-server and devpi-client";
50 changelog = "https://github.com/devpi/devpi/blob/common-${version}/common/CHANGELOG";
51 license = licenses.mit;
52 maintainers = with maintainers; [
53 lewo
54 makefu
55 ];
56 };
57}