depot/third_party/nixpkgs/pkgs/development/python-modules/cantools/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

59 lines
1,014 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, argparse-addons
, bitstruct
, can
, crccheck
, diskcache
, matplotlib
, parameterized
, pytestCheckHook
, pythonOlder
, textparser
}:
buildPythonPackage rec {
pname = "cantools";
version = "39.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-LD0IGSJZG8FhHJ8f9S1sivHQMxT4xyTMEU2FbMVVzCg=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
argparse-addons
bitstruct
can
crccheck
diskcache
matplotlib
textparser
];
nativeCheckInputs = [
parameterized
pytestCheckHook
];
pythonImportsCheck = [
"cantools"
];
meta = with lib; {
description = "Tools to work with CAN bus";
homepage = "https://github.com/cantools/cantools";
changelog = "https://github.com/cantools/cantools/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ gray-heron ];
};
}