From ced21f5e1a1479e3b6ae5c218818790596f5a16f Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sat, 23 Jun 2018 15:27:58 +0200 Subject: 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`. --- .../development/python-modules/antlr4-python3-runtime/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs/development/python-modules/antlr4-python3-runtime') diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index 84f2859d50c0..8f46a6f0b0f0 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchurl, buildPythonPackage, isPy3k }: +{ stdenv, fetchPypi, buildPythonPackage, isPy3k }: buildPythonPackage rec { + pname = "antlr4-python3-runtime"; version = "4.7.1"; - name = "antlr4-python3-runtime-${version}"; disabled = !isPy3k; - src = fetchurl { - url = "mirror://pypi/a/antlr4-python3-runtime/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "1lrzmagawmavyw1n1z0qarvs2jmbnbv0p89dah8g7klj8hnbf9hv"; }; -- cgit 1.4.1