python3Packages.seabreeze: init at 0.6.0

This commit is contained in:
Stewart Mackenzie 2019-05-06 20:04:11 +08:00 committed by worldofpeace
parent 5be0d1e57f
commit b0315ac5d0
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ stdenv
, fetchFromGitHub
, buildPythonPackage
, pyusb
, numpy
}:
## Usage
# In NixOS, simply add the `udev` multiple output to services.udev.packages:
# services.udev.packages = [ pkgs.python3Packages.seabreeze.udev ];
buildPythonPackage rec {
pname = "seabreeze";
version = "0.6.0";
src = fetchFromGitHub {
owner = "ap--";
repo = "python-seabreeze";
rev = "python-seabreeze-v${version}";
sha256 = "0bc2s9ic77gz9m40w89snixphxlzib60xa4f49n4zasjrddfz1l8";
};
outputs = [ "out" "udev" ];
postInstall = ''
mkdir -p $udev/lib/udev/rules.d
cp misc/10-oceanoptics.rules $udev/lib/udev/rules.d/10-oceanoptics.rules
'';
# underlying c libraries are tested and fail
# (c libs are used with anaconda, which we don't care about as we use the alternative path, being that of pyusb).
doCheck = false;
propagatedBuildInputs = [ pyusb numpy ];
setupPyBuildFlags = [ "--without-cseabreeze" ];
meta = with stdenv.lib; {
homepage = "https://github.com/ap--/python-seabreeze";
description = "A python library to access Ocean Optics spectrometers";
maintainers = [];
license = licenses.mit;
};
}

View File

@ -4273,6 +4273,8 @@ in {
seaborn = callPackage ../development/python-modules/seaborn { };
seabreeze = callPackage ../development/python-modules/seabreeze { };
selenium = callPackage ../development/python-modules/selenium { };
serpy = callPackage ../development/python-modules/serpy { };