pythonPackages.usbtmc: switch to fetchFromGitHub
This commit is contained in:
parent
18664585ac
commit
f0843b3c64
1 changed files with 6 additions and 4 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue