Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / canopen / default.nix
blob09a9f4366a0dd76fc6d73d939c7b9355c19bb078
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools-scm
5 , can
6 , canmatrix
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "canopen";
13   version = "2.2.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-XxhlG5325HabmILpafk0rnc+8kpFqrwzNLWGmCBI0Iw=";
21   };
23   nativeBuildInputs = [
24     setuptools-scm
25   ];
27   propagatedBuildInputs = [
28     can
29     canmatrix
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "canopen"
38   ];
40   meta = with lib; {
41     description = "CANopen stack implementation";
42     homepage = "https://github.com/christiansandberg/canopen/";
43     changelog = "https://github.com/christiansandberg/canopen/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ sorki ];
46   };