nixpkgs/pkgs/development/python-modules/portpicker/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

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 ];
};
}