@@ -1,8 +1,17 @@
11{ lib
22, fetchFromGitHub
33, buildPythonPackage
4−, pyusb
4+, cython
5+, git
6+, pkgconfig
7+, pytest-runner
8+, setuptools-scm
9+, future
510, numpy
11+, pyusb
12+, mock
13+, pytestCheckHook
14+, zipp
615}:
716
817## Usage
@@ -18,19 +27,35 @@ buildPythonPackage rec {
1827 owner = "ap--";
1928 repo = "python-seabreeze";
2029 rev = "v${version}";
21− sha256 = "1lna3w1vsci35dhyi7qjvbb99gxvzk23k195c7by7kkrps844q1j";
30+ sha256 = "1hm9aalpb9sdp8s7ckn75xvyiacp5678pv9maybm5nz0z2h29ibq";
31+ leaveDotGit = true;
2232 };
2333
34+ nativeBuildInputs = [
35+ cython
36+ git
37+ pkgconfig
38+ pytest-runner
39+ setuptools-scm
40+ ];
41+
42+ propagatedBuildInputs = [
43+ future
44+ numpy
45+ pyusb
46+ ];
47+
2448 postInstall = ''
2549 mkdir -p $out/etc/udev/rules.d
26− cp misc/10-oceanoptics.rules $out/etc/udev/rules.d/10-oceanoptics.rules
50+ cp os_support/10-oceanoptics.rules $out/etc/udev/rules.d/10-oceanoptics.rules
2751 '';
2852
29− # underlying c libraries are tested and fail
30− # (c libs are used with anaconda, which we don't care about as we use the alternative path, being that of pyusb).
31− doCheck = false;
32−
33− propagatedBuildInputs = [ pyusb numpy ];
53+ # few backends enabled, but still some tests
54+ checkInputs = [
55+ pytestCheckHook
56+ mock
57+ zipp
58+ ];
3459
3560 setupPyBuildFlags = [ "--without-cseabreeze" ];
3661