Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 43 lines 909 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, importlib-metadata 3, keyring 4, pkginfo 5, pyblake2 6, readme_renderer 7, requests 8, requests_toolbelt 9, setuptools_scm 10, tqdm 11}: 12 13buildPythonPackage rec { 14 pname = "twine"; 15 version = "3.1.1"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "d561a5e511f70275e5a485a6275ff61851c16ffcb3a95a602189161112d9f160"; 21 }; 22 23 nativeBuildInputs = [ setuptools_scm ]; 24 propagatedBuildInputs = [ 25 keyring 26 pkginfo 27 pyblake2 28 readme_renderer 29 requests 30 requests_toolbelt 31 tqdm 32 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 33 34 # Requires network 35 doCheck = false; 36 37 meta = { 38 description = "Collection of utilities for interacting with PyPI"; 39 homepage = https://github.com/pypa/twine; 40 license = lib.licenses.asl20; 41 maintainers = with lib.maintainers; [ fridh ]; 42 }; 43}