889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
53 lines
946 B
Nix
53 lines
946 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, importlib-metadata
|
|
, keyring
|
|
, pkginfo
|
|
, readme_renderer
|
|
, requests
|
|
, requests-toolbelt
|
|
, rich
|
|
, rfc3986
|
|
, setuptools-scm
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twine";
|
|
version = "4.0.1";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-lrHPEveuYRpKQLaujpVwIV2v8GEYKPX+HzehYlWrJKA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
keyring
|
|
pkginfo
|
|
readme_renderer
|
|
requests
|
|
requests-toolbelt
|
|
rfc3986
|
|
rich
|
|
urllib3
|
|
];
|
|
|
|
# Requires network
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "twine" ];
|
|
|
|
meta = {
|
|
description = "Collection of utilities for interacting with PyPI";
|
|
homepage = "https://github.com/pypa/twine";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
}
|