pythonPackages.usbtmc: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 13:30:55 +02:00 committed by Jonathan Ringer
parent 18664585ac
commit f0843b3c64

View file

@ -1,12 +1,14 @@
{ lib, fetchurl, buildPythonPackage, pyusb }:
{ lib, fetchFromGitHub, buildPythonPackage, pyusb }:
buildPythonPackage rec {
pname = "usbtmc";
version = "0.8";
src = fetchurl {
url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
sha256 = "14f4j77ljr45crnjwlp1dqbxwa45s20y2fpq5rg59r60w15al4yw";
src = fetchFromGitHub {
owner = "python-ivi";
repo = "python-usbtmc";
rev = "v${version}";
sha256 = "sha256-69kqBTqnVqdWC2mqlXylzb9VkdhwTGZI0Ykf6lqbypI=";
};
propagatedBuildInputs = [ pyusb ];