pythonPackages.BlinkStick: move expression
This commit is contained in:
parent
d509dd8bd3
commit
250aa352c4
20
pkgs/development/python-modules/blinkstick/default.nix
Normal file
20
pkgs/development/python-modules/blinkstick/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pyusb }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "BlinkStick";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyusb ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package to control BlinkStick USB devices";
|
||||
homepage = https://pypi.python.org/pypi/BlinkStick/;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ np ];
|
||||
};
|
||||
}
|
|
@ -18738,30 +18738,7 @@ EOF
|
|||
|
||||
pyusb = callPackage ../development/python-modules/pyusb { libusb1 = pkgs.libusb1; };
|
||||
|
||||
BlinkStick = buildPythonPackage rec {
|
||||
name = "BlinkStick-${version}";
|
||||
version = "1.1.8";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/B/BlinkStick/${name}.tar.gz";
|
||||
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408";
|
||||
};
|
||||
|
||||
# Requires pyusb 1.0.0b1.
|
||||
# Likely current pyusb will work but we need to patch the hard requirement then.
|
||||
broken = true;
|
||||
|
||||
patchPhase = "substituteInPlace setup.py --replace pyusb==1.0.0b1 pyusb==1.0.0";
|
||||
|
||||
propagatedBuildInputs = with self; [ pyusb ];
|
||||
|
||||
meta = {
|
||||
description = "Python package to control BlinkStick USB devices";
|
||||
homepage = https://pypi.python.org/pypi/BlinkStick/;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ np ];
|
||||
};
|
||||
};
|
||||
BlinkStick = callPackage ../development/python-modules/blinkstick { };
|
||||
|
||||
usbtmc = callPackage ../development/python-modules/usbtmc {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue