1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, can 6, canmatrix }: 7 8buildPythonPackage rec { 9 pname = "canopen"; 10 version = "0.5.1"; 11 12 # use fetchFromGitHub until version containing test/sample.eds 13 # is available on PyPi 14 # https://github.com/christiansandberg/canopen/pull/57 15 16 src = fetchFromGitHub { 17 owner = "christiansandberg"; 18 repo = "canopen"; 19 rev = "b20575d84c3aef790fe7c38c5fc77601bade0ea4"; 20 sha256 = "1qg47qrkyvyxiwi13sickrkk89jp9s91sly2y90bz0jhws2bxh64"; 21 }; 22 23 #src = fetchPypi { 24 # inherit pname version; 25 # sha256 = "0806cykarpjb9ili3mf82hsd9gdydbks8532nxgz93qzg4zdbv2g"; 26 #}; 27 28 # test_pdo failure https://github.com/christiansandberg/canopen/issues/58 29 doCheck = false; 30 31 propagatedBuildInputs = 32 [ can 33 canmatrix 34 ]; 35 36 checkInputs = [ nose ]; 37 38 meta = with lib; { 39 homepage = https://github.com/christiansandberg/canopen/; 40 description = "CANopen stack implementation"; 41 license = licenses.lgpl3; 42 maintainers = with maintainers; [ sorki ]; 43 }; 44}