1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, can
6, canmatrix
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "canopen";
12 version = "1.2.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06";
17 };
18
19 nativeBuildInputs = [
20 setuptools-scm
21 ];
22
23 propagatedBuildInputs = [
24 can
25 canmatrix
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "canopen" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/christiansandberg/canopen/";
36 description = "CANopen stack implementation";
37 license = licenses.mit;
38 maintainers = with maintainers; [ sorki ];
39 };
40}