nixpkgs/pkgs/development/python-modules/canopen/default.nix

41 lines
703 B
Nix
Raw Normal View History

2018-02-01 21:31:30 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
2018-02-01 21:31:30 +00:00
, can
, canmatrix
, pytestCheckHook
}:
2018-02-01 21:31:30 +00:00
buildPythonPackage rec {
2018-02-01 21:31:30 +00:00
pname = "canopen";
version = "1.2.1";
2018-02-01 21:31:30 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06";
2018-02-01 21:31:30 +00:00
};
nativeBuildInputs = [
setuptools-scm
];
2018-02-01 21:31:30 +00:00
propagatedBuildInputs = [
can
canmatrix
];
checkInputs = [
pytestCheckHook
];
2018-02-01 21:31:30 +00:00
pythonImportsCheck = [ "canopen" ];
2018-02-01 21:31:30 +00:00
meta = with lib; {
homepage = "https://github.com/christiansandberg/canopen/";
2018-02-01 21:31:30 +00:00
description = "CANopen stack implementation";
license = licenses.mit;
2018-02-01 21:31:30 +00:00
maintainers = with maintainers; [ sorki ];
};
}