nixpkgs-suyu/pkgs/development/python-modules/antlr4-python3-runtime/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

18 lines
416 B
Nix

{ stdenv, fetchPypi, buildPythonPackage, isPy3k }:
buildPythonPackage rec {
pname = "antlr4-python3-runtime";
version = "4.7.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1lrzmagawmavyw1n1z0qarvs2jmbnbv0p89dah8g7klj8hnbf9hv";
};
meta = {
description = "Runtime for ANTLR";
homepage = "http://www.antlr.org/";
license = stdenv.lib.licenses.bsd3;
};
}