2019-12-22 19:50:24 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, keyring
|
2017-09-26 18:32:15 +01:00
|
|
|
, pkginfo
|
2019-12-22 19:50:24 +00:00
|
|
|
, pyblake2
|
|
|
|
, readme_renderer
|
2017-09-26 18:32:15 +01:00
|
|
|
, requests
|
|
|
|
, requests_toolbelt
|
2019-12-22 19:50:24 +00:00
|
|
|
, setuptools_scm
|
2017-09-26 18:32:15 +01:00
|
|
|
, tqdm
|
2020-06-24 18:07:04 +01:00
|
|
|
, colorama
|
|
|
|
, rfc3986
|
2017-09-26 18:32:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twine";
|
2021-03-24 09:28:31 +00:00
|
|
|
version = "3.4.1";
|
2019-11-22 03:11:10 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-26 18:32:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:31 +00:00
|
|
|
sha256 = "a56c985264b991dc8a8f4234eb80c5af87fa8080d0c224ad8f2cd05a2c22e83b";
|
2017-09-26 18:32:15 +01:00
|
|
|
};
|
|
|
|
|
2019-12-22 19:50:24 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
keyring
|
|
|
|
pkginfo
|
|
|
|
pyblake2
|
|
|
|
readme_renderer
|
|
|
|
requests
|
|
|
|
requests_toolbelt
|
|
|
|
tqdm
|
2020-06-24 18:07:04 +01:00
|
|
|
colorama
|
|
|
|
rfc3986
|
2019-12-22 19:50:24 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2017-09-26 18:32:15 +01:00
|
|
|
|
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Collection of utilities for interacting with PyPI";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pypa/twine";
|
2017-09-26 18:32:15 +01:00
|
|
|
license = lib.licenses.asl20;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-09-26 18:32:15 +01:00
|
|
|
};
|
2017-12-05 22:20:11 +00:00
|
|
|
}
|