depot/third_party/nixpkgs/pkgs/development/python-modules/twine/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

53 lines
944 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.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nhAu9f3VogZh64j61GM4gGw70yzx23KWA/42l7G8g8g=";
};
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 ];
};
}