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`.
18 lines
416 B
Nix
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;
|
|
};
|
|
}
|