From 82ababbd833651d319e604091edc4d585f9035e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 29 Oct 2017 16:08:28 +0100 Subject: [PATCH] pythonPackages.pyusb: 1.0.0 -> 1.0.2 Also, fetchurl -> fetchPypi. --- pkgs/development/python-modules/pyusb/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyusb/default.nix b/pkgs/development/python-modules/pyusb/default.nix index 0651192344ad..6ba6794bfd13 100644 --- a/pkgs/development/python-modules/pyusb/default.nix +++ b/pkgs/development/python-modules/pyusb/default.nix @@ -1,11 +1,13 @@ -{ stdenv, fetchurl, buildPythonPackage, libusb, libusb1 }: +{ stdenv, fetchPypi, buildPythonPackage, libusb, libusb1 }: buildPythonPackage rec { - name = "pyusb-1.0.0"; + pname = "pyusb"; + version = "1.0.2"; + name = "${pname}-${version}"; - src = fetchurl { - url = "https://pypi.python.org/packages/8a/19/66fb48a4905e472f5dfeda3a1bafac369fbf6d6fc5cf55b780864962652d/PyUSB-1.0.0.tar.gz"; - sha256 = "0s2k4z06fapd5vp1gnrlf8a9sjpc03p9974lzw5k6ky39akzyd2v"; + src = fetchPypi { + inherit pname version; + sha256 = "0qkk2jn270jwwl1x26hmdhb14m9kkbrzzwzizdjcl1a29b6756sf"; }; # Fix the USB backend library lookup