3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/twine/default.nix

44 lines
911 B
Nix
Raw Normal View History

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
}:
buildPythonPackage rec {
pname = "twine";
2019-12-19 19:31:24 +00:00
version = "3.1.1";
disabled = pythonOlder "3.6";
2017-09-26 18:32:15 +01:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:24 +00:00
sha256 = "d561a5e511f70275e5a485a6275ff61851c16ffcb3a95a602189161112d9f160";
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
] ++ 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";
homepage = "https://github.com/pypa/twine";
2017-09-26 18:32:15 +01:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fridh ];
2017-09-26 18:32:15 +01:00
};
}