1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 unittestCheckHook, 6 mock, 7 sphinx-testing, 8 sphinx, 9 blockdiag, 10}: 11 12buildPythonPackage rec { 13 pname = "sphinxcontrib-blockdiag"; 14 version = "3.0.0"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "aa49bf924516f5de8a479994c7be81e077df5599c9da2a082003d5b388e1d450"; 20 }; 21 22 buildInputs = [ 23 mock 24 sphinx-testing 25 ]; 26 propagatedBuildInputs = [ 27 sphinx 28 blockdiag 29 ]; 30 31 # Seems to look for files in the wrong dir 32 doCheck = false; 33 34 nativeCheckInputs = [ unittestCheckHook ]; 35 36 unittestFlagsArray = [ 37 "-s" 38 "tests" 39 ]; 40 41 pythonNamespaces = [ "sphinxcontrib" ]; 42 43 meta = with lib; { 44 description = "Sphinx blockdiag extension"; 45 homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag"; 46 maintainers = [ ]; 47 license = licenses.bsd2; 48 }; 49}