mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 23:10:02 +00:00
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`.
22 lines
477 B
Nix
22 lines
477 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchPypi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "portpicker";
|
|
version = "1.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0c1lm3i4yngi1qclb0hny19vwjd2si5k2qni30wcrnxqqasqak1y";
|
|
};
|
|
|
|
meta = {
|
|
description = "A library to choose unique available network ports.";
|
|
homepage = "https://github.com/google/python_portpicker";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ danharaj ];
|
|
};
|
|
}
|