python-canmatrix: init at 0.6

This commit is contained in:
Richard Marko 2018-02-01 22:31:14 +01:00
parent 096a07f5e2
commit 6c52f36468
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, lxml
, xlwt
, xlrd
, XlsxWriter
, pyyaml
, future }:
buildPythonPackage rec {
pname = "canmatrix";
version = "0.6";
# uses fetchFromGitHub as PyPi release misses test/ dir
src = fetchFromGitHub {
owner = "ebroecker";
repo = pname;
rev = version;
sha256 = "1lb0krhchja2jqfsh5lsfgmqcchs1pd38akvc407jfmll96f4yqz";
};
checkPhase = ''
cd test
${python.interpreter} ./test.py
'';
propagatedBuildInputs =
[ lxml
xlwt
xlrd
XlsxWriter
pyyaml
future
];
meta = with lib; {
homepage = https://github.com/ebroecker/canmatrix;
description = "Support and convert several CAN (Controller Area Network) database formats .arxml .dbc .dbf .kcd .sym fibex xls(x)";
license = licenses.bsd2;
maintainers = with maintainers; [ sorki ];
};
}

View file

@ -2016,6 +2016,8 @@ in {
can = callPackage ../development/python-modules/can {};
canmatrix = callPackage ../development/python-modules/canmatrix {};
cairocffi = buildPythonPackage rec {
name = "cairocffi-0.7.2";