depot/third_party/nixpkgs/pkgs/development/python-modules/canopen/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

40 lines
703 B
Nix

{ 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 ];
};
}