Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / canopen / default.nix
blob51a6d0d11c0fcc343e5ca8ba48f5832378f569c9
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools-scm
5 , can
6 , canmatrix
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "canopen";
12   version = "1.2.1";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06";
17   };
19   nativeBuildInputs = [
20     setuptools-scm
21   ];
23   propagatedBuildInputs = [
24     can
25     canmatrix
26   ];
28   checkInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "canopen" ];
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   };