mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +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`.
27 lines
551 B
Nix
27 lines
551 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchPypi
|
|
, protobuf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "s2clientprotocol";
|
|
version = "3.19.1.58600.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "02jqwdfj5zpag4c5nf0707qmwk7sqm98yfgrd19rq6pi58zgl74f";
|
|
};
|
|
|
|
patches = [ ./pure-version.patch ];
|
|
|
|
buildInputs = [ protobuf ];
|
|
|
|
meta = {
|
|
description = "StarCraft II - client protocol.";
|
|
homepage = "https://github.com/Blizzard/sc2client-proto";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ danharaj ];
|
|
};
|
|
}
|