nixpkgs-suyu/pkgs/development/python-modules/sphinx-testing/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

34 lines
No EOL
717 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
, sphinx
, six
, python
}:
buildPythonPackage rec {
pname = "sphinx-testing";
version = "0.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "9d30f93007620e137b33edf19f52a7225eab853546b7e588ef09d1342e821e94";
};
checkInputs = [ mock ];
propagatedBuildInputs = [ sphinx six ];
checkPhase = ''
${python.interpreter} -m unittest discover -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";
};
}