nixpkgs/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

38 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, unittestCheckHook
, mock
, sphinx-testing
, sphinx
, blockdiag
}:
buildPythonPackage rec {
pname = "sphinxcontrib-blockdiag";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "aa49bf924516f5de8a479994c7be81e077df5599c9da2a082003d5b388e1d450";
};
buildInputs = [ mock sphinx-testing ];
propagatedBuildInputs = [ sphinx blockdiag ];
# Seems to look for files in the wrong dir
doCheck = false;
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "-s" "tests" ];
meta = with lib; {
description = "Sphinx blockdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";
maintainers = with maintainers; [ ];
license = licenses.bsd2;
};
}