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