nixpkgs-suyu/pkgs/development/python-modules/can/default.nix

36 lines
761 B
Nix
Raw Normal View History

2018-02-01 22:30:26 +01:00
{ lib
, buildPythonPackage
, fetchPypi
2018-07-24 17:28:26 +02:00
, wrapt
2018-02-01 22:30:26 +01:00
, pyserial
, nose
2018-07-24 17:28:26 +02:00
, mock
, pytest
, pytest-timeout }:
2018-02-01 22:30:26 +01:00
buildPythonPackage rec {
pname = "python-can";
2018-11-04 11:34:55 +01:00
version = "3.0.0";
2018-02-01 22:30:26 +01:00
src = fetchPypi {
inherit pname version;
2018-11-04 11:34:55 +01:00
sha256 = "0d2ddb3b663af51b11a4c7fb7a577c63302a831986239f82bb6af65efc065b07";
2018-02-01 22:30:26 +01:00
};
2018-07-24 17:28:26 +02:00
propagatedBuildInputs = [ wrapt pyserial ];
checkInputs = [ nose mock pytest pytest-timeout ];
checkPhase = ''
pytest -k "not test_writer_and_reader \
and not test_reader \
and not test_socketcan_on_ci_server"
'';
2018-02-01 22:30:26 +01:00
meta = with lib; {
homepage = https://github.com/hardbyte/python-can;
description = "CAN support for Python";
license = licenses.lgpl3;
maintainers = with maintainers; [ sorki ];
};
}