Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, unittestCheckHook 5, mock 6, sphinx-testing 7, sphinx 8, blockdiag 9}: 10 11buildPythonPackage rec { 12 pname = "sphinxcontrib-blockdiag"; 13 version = "3.0.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "aa49bf924516f5de8a479994c7be81e077df5599c9da2a082003d5b388e1d450"; 18 }; 19 20 buildInputs = [ mock sphinx-testing ]; 21 propagatedBuildInputs = [ sphinx blockdiag ]; 22 23 # Seems to look for files in the wrong dir 24 doCheck = false; 25 26 nativeCheckInputs = [ unittestCheckHook ]; 27 28 unittestFlagsArray = [ "-s" "tests" ]; 29 30 meta = with lib; { 31 description = "Sphinx blockdiag extension"; 32 homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag"; 33 maintainers = with maintainers; [ ]; 34 license = licenses.bsd2; 35 }; 36 37}