2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
importlib-metadata,
|
|
|
|
keyring,
|
|
|
|
pkginfo,
|
|
|
|
readme-renderer,
|
|
|
|
requests,
|
|
|
|
requests-toolbelt,
|
|
|
|
rich,
|
|
|
|
rfc3986,
|
|
|
|
setuptools-scm,
|
|
|
|
urllib3,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twine";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.0.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
format = "pyproject";
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-ibDMfTcKS2ZCHMYQLyaaqRD+DxhhwST1c88t3tvBDPQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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
|
2024-01-25 14:12:00 +00:00
|
|
|
readme-renderer
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
2021-07-24 12:14:16 +00:00
|
|
|
requests-toolbelt
|
2020-07-18 16:06:22 +00:00
|
|
|
rfc3986
|
2022-04-27 09:35:20 +00:00
|
|
|
rich
|
|
|
|
urllib3
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
pythonImportsCheck = [ "twine" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Collection of utilities for interacting with PyPI";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "twine";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pypa/twine";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|