1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, importlib-metadata
3, keyring
4, pkginfo
5, pyblake2
6, readme_renderer
7, requests
8, requests_toolbelt
9, setuptools_scm
10, tqdm
11, colorama
12, rfc3986
13}:
14
15buildPythonPackage rec {
16 pname = "twine";
17 version = "3.2.0";
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "34352fd52ec3b9d29837e6072d5a2a7c6fe4290e97bba46bb8d478b5c598f7ab";
23 };
24
25 nativeBuildInputs = [ setuptools_scm ];
26 propagatedBuildInputs = [
27 keyring
28 pkginfo
29 pyblake2
30 readme_renderer
31 requests
32 requests_toolbelt
33 tqdm
34 colorama
35 rfc3986
36 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
37
38 # Requires network
39 doCheck = false;
40
41 meta = {
42 description = "Collection of utilities for interacting with PyPI";
43 homepage = "https://github.com/pypa/twine";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ fridh ];
46 };
47}