diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/usbtmc')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/usbtmc/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/usbtmc/default.nix b/nixpkgs/pkgs/development/python-modules/usbtmc/default.nix new file mode 100644 index 000000000000..bcbaa0b728c3 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/usbtmc/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, buildPythonPackage, pyusb }: + +buildPythonPackage rec { + pname = "usbtmc"; + version = "0.8"; + name = pname + "-" + version; + + src = fetchurl { + url = "https://github.com/python-ivi/python-usbtmc/archive/v${version}.tar.gz"; + sha256 = "14f4j77ljr45crnjwlp1dqbxwa45s20y2fpq5rg59r60w15al4yw"; + }; + + 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 ]; + }; +} |