1{ lib 2, buildPythonPackage 3, fetchPypi 4, attrdict 5, cairosvg 6, pillow 7, pytestCheckHook 8, setuptools-scm 9, six 10, svgwrite 11, xmldiff 12}: 13 14buildPythonPackage rec { 15 pname = "wavedrom"; 16 version = "2.0.3.post2"; 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "239b3435ff116b09007d5517eed755fc8591891b7271a1cd40db9e400c02448d"; 20 }; 21 22 SETUPTOOLS_SCM_PRETEND_VERSION = version; 23 24 nativeBuildInputs = [ 25 setuptools-scm 26 ]; 27 28 propagatedBuildInputs = [ 29 attrdict 30 svgwrite 31 six 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 xmldiff 37 pillow 38 cairosvg 39 ]; 40 41 disabledTests = [ 42 "test_upstream" # requires to clone a full git repository 43 ]; 44 45 pythonImportsCheck = [ "wavedrom" ]; 46 47 meta = { 48 description = "WaveDrom compatible Python command line"; 49 homepage = "https://github.com/wallento/wavedrompy"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ airwoodix ]; 52 }; 53}