mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
33afbf39f6
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.
33 lines
716 B
Nix
33 lines
716 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, sphinx
|
|
, six
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-testing";
|
|
version = "1.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ef661775b5722d7b00f67fc229104317d35637a4fb4434bf2c005afdf1da4d09";
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook mock ];
|
|
propagatedBuildInputs = [ sphinx six ];
|
|
|
|
unittestFlagsArray = [ "-s" "tests" ];
|
|
|
|
# Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/sphinx-doc/sphinx-testing";
|
|
license = lib.licenses.bsd2;
|
|
description = "Testing utility classes and functions for Sphinx extensions";
|
|
};
|
|
}
|