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.4.2";
18 format = "pyproject";
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "4caec0f1ed78dc4c9b83ad537e453d03ce485725f2aea57f1bb3fdde78dae936";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27 propagatedBuildInputs = [
28 importlib-metadata
29 keyring
30 pkginfo
31 pyblake2
32 readme_renderer
33 requests
34 requests-toolbelt
35 tqdm
36 colorama
37 rfc3986
38 ];
39
40 # Requires network
41 doCheck = false;
42
43 meta = {
44 description = "Collection of utilities for interacting with PyPI";
45 homepage = "https://github.com/pypa/twine";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ fridh ];
48 };
49}