1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/development/python-modules/canopen/default.nix
2021-02-20 15:06:51 +00:00

41 lines
703 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, can
, canmatrix
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "canopen";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "18d01d56ff0023795cb336cafd4810a76cf402b98b42139b201fa8c5d4ba8c06";
};
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 ];
};
}