From 689f0ce372399a1a29e5fd4505d46ee398a26a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 21 May 2017 14:38:27 +0100 Subject: [PATCH] enzyme: use fetchPypi --- pkgs/development/python-modules/enzyme/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/enzyme/default.nix b/pkgs/development/python-modules/enzyme/default.nix index 57894add982c..60c92fe76fb2 100644 --- a/pkgs/development/python-modules/enzyme/default.nix +++ b/pkgs/development/python-modules/enzyme/default.nix @@ -1,14 +1,15 @@ -{ stdenv, fetchurl, buildPythonPackage }: +{ stdenv, fetchPypi, buildPythonPackage }: buildPythonPackage rec { - name = "enzyme-${version}"; + name = "${pname}-${version}"; + pname = "enzyme"; version = "0.4.1"; # Tests rely on files obtained over the network doCheck = false; - src = fetchurl { - url = "mirror://pypi/e/enzyme/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "1fv2kh2v4lwj0hhrhj9pib1pdjh01yr4xgyljhx11l94gjlpy5pj"; };