2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, keyring
|
|
|
|
, pkginfo
|
|
|
|
, pyblake2
|
|
|
|
, readme_renderer
|
|
|
|
, requests
|
2021-07-24 12:14:16 +00:00
|
|
|
, requests-toolbelt
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, tqdm
|
2020-07-18 16:06:22 +00:00
|
|
|
, colorama
|
|
|
|
, rfc3986
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twine";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.4.2";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "4caec0f1ed78dc4c9b83ad537e453d03ce485725f2aea57f1bb3fdde78dae936";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
keyring
|
|
|
|
pkginfo
|
|
|
|
pyblake2
|
|
|
|
readme_renderer
|
|
|
|
requests
|
2021-07-24 12:14:16 +00:00
|
|
|
requests-toolbelt
|
2020-04-24 23:36:52 +00:00
|
|
|
tqdm
|
2020-07-18 16:06:22 +00:00
|
|
|
colorama
|
|
|
|
rfc3986
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Collection of utilities for interacting with PyPI";
|
|
|
|
homepage = "https://github.com/pypa/twine";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|