at 18.09-beta 761 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, wrapt 5, pyserial 6, nose 7, mock 8, pytest 9, pytest-timeout }: 10 11buildPythonPackage rec { 12 pname = "python-can"; 13 version = "2.2.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "b5e93b2ee32bdd597d9d908afe5171c402a04c9678ba47b60f33506738b1375b"; 18 }; 19 20 propagatedBuildInputs = [ wrapt pyserial ]; 21 checkInputs = [ nose mock pytest pytest-timeout ]; 22 23 checkPhase = '' 24 pytest -k "not test_writer_and_reader \ 25 and not test_reader \ 26 and not test_socketcan_on_ci_server" 27 ''; 28 29 meta = with lib; { 30 homepage = https://github.com/hardbyte/python-can; 31 description = "CAN support for Python"; 32 license = licenses.lgpl3; 33 maintainers = with maintainers; [ sorki ]; 34 }; 35}