forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
32 lines
633 B
Nix
32 lines
633 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pkginfo
|
|
, requests
|
|
, requests_toolbelt
|
|
, tqdm
|
|
, pyblake2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twine";
|
|
version = "1.11.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "09cz9v63f8mrs4znbjapjj2z3wdfryq8q364zm0wzjhbzzcs9n9g";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pkginfo requests requests_toolbelt tqdm pyblake2 ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|