1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/twine/default.nix
2020-04-10 17:54:53 +01:00

44 lines
911 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, importlib-metadata
, keyring
, pkginfo
, pyblake2
, readme_renderer
, requests
, requests_toolbelt
, setuptools_scm
, tqdm
}:
buildPythonPackage rec {
pname = "twine";
version = "3.1.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "d561a5e511f70275e5a485a6275ff61851c16ffcb3a95a602189161112d9f160";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
keyring
pkginfo
pyblake2
readme_renderer
requests
requests_toolbelt
tqdm
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# 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 ];
};
}