15 # optional-dependenices
25 # In NixOS, add the package to services.udev.packages for non-root plugdev
26 # users to get device access permission:
27 # services.udev.packages = [ pkgs.python3Packages.seabreeze ];
29 buildPythonPackage rec {
34 src = fetchFromGitHub {
36 repo = "python-seabreeze";
37 rev = "refs/tags/v${version}";
38 hash = "sha256-Ead9G4i8/mFwPqL2PGsndtmX93Njld3nvTTr6ROJTac=";
50 propagatedBuildInputs = [
54 passthru.optional-dependencies = {
61 mkdir -p $out/etc/udev/rules.d
62 cp os_support/10-oceanoptics.rules $out/etc/udev/rules.d/10-oceanoptics.rules
65 # few backends enabled, but still some tests
70 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
72 setupPyBuildFlags = [ "--without-cseabreeze" ];
75 homepage = "https://github.com/ap--/python-seabreeze";
76 description = "A python library to access Ocean Optics spectrometers";
78 license = licenses.mit;