about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/canopen/default.nix
blob: 8925c1cc8a41fa464cc0a423408f7da709c32956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, can
, canmatrix
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "canopen";
  version = "1.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "15d49f1f71e9989dde6e3b75fb8445c76bd223064dfc0ac629fe9ecb0e21fba9";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    can
    canmatrix
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "canopen" ];

  meta = with lib; {
    homepage = "https://github.com/christiansandberg/canopen/";
    description = "CANopen stack implementation";
    license = licenses.mit;
    maintainers = with maintainers; [ sorki ];
  };
}