pythonPackages.usbtmc: move to python-modules/

This commit is contained in:
Bjørn Forsman 2017-10-29 15:51:20 +01:00
parent aaa3608b4b
commit 05bf2bdba1
2 changed files with 21 additions and 19 deletions

View File

@ -0,0 +1,20 @@
{ stdenv, fetchurl, buildPythonPackage, pyusb }:
buildPythonPackage rec {
name = "usbtmc-${version}";
version = "0.6";
src = fetchurl {
url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
sha256 = "1wnw6ndc3s1i8zpbikz5zc40ijvpraqdb0xn8zmqlyn95xxfizw2";
};
propagatedBuildInputs = [ pyusb ];
meta = with stdenv.lib; {
description = "Python implementation of the USBTMC instrument control protocol";
homepage = http://alexforencich.com/wiki/en/python-usbtmc/start;
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
}

View File

@ -22839,25 +22839,7 @@ EOF
};
};
usbtmc = buildPythonPackage rec {
name = "usbtmc-${version}";
version = "0.6";
src = pkgs.fetchurl {
url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz";
sha256 = "1wnw6ndc3s1i8zpbikz5zc40ijvpraqdb0xn8zmqlyn95xxfizw2";
};
propagatedBuildInputs = with self; [ pyusb ];
meta = {
description = "Python implementation of the USBTMC instrument control protocol";
homepage = http://alexforencich.com/wiki/en/python-usbtmc/start;
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
};
};
usbtmc = callPackage ../development/python-modules/usbtmc {};
txgithub = buildPythonPackage rec {
name = "${pname}-${version}";