2018-02-01 22:31:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-06-16 10:01:37 +02:00
|
|
|
, fetchPypi
|
2021-02-04 03:34:37 +01:00
|
|
|
, setuptools-scm
|
2018-02-01 22:31:30 +01:00
|
|
|
, can
|
2021-02-04 03:34:37 +01:00
|
|
|
, canmatrix
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-02-01 22:31:30 +01:00
|
|
|
|
2020-06-16 10:01:37 +02:00
|
|
|
buildPythonPackage rec {
|
2018-02-01 22:31:30 +01:00
|
|
|
pname = "canopen";
|
2021-02-20 16:06:51 +01:00
|
|
|
version = "1.2.1";
|
2018-02-01 22:31:30 +01:00
|
|
|
|
2020-06-16 10:01:37 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 16:06:51 +01:00
|
|
|
sha256 = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06";
|
2018-02-01 22:31:30 +01:00
|
|
|
};
|
|
|
|
|
2021-02-04 03:34:37 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2018-02-01 22:31:30 +01:00
|
|
|
|
2021-02-04 03:34:37 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
can
|
|
|
|
canmatrix
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-02-01 22:31:30 +01:00
|
|
|
|
2021-02-04 09:08:27 +01:00
|
|
|
pythonImportsCheck = [ "canopen" ];
|
|
|
|
|
2018-02-01 22:31:30 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/christiansandberg/canopen/";
|
2018-02-01 22:31:30 +01:00
|
|
|
description = "CANopen stack implementation";
|
2021-02-04 03:34:37 +01:00
|
|
|
license = licenses.mit;
|
2018-02-01 22:31:30 +01:00
|
|
|
maintainers = with maintainers; [ sorki ];
|
|
|
|
};
|
|
|
|
}
|