nixpkgs/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix
Jonathan Ringer 375611df00 pythonPackages.sphinxcontrib-jsmath: disable python2
```
  Processing ./sphinxcontrib_jsmath-1.0.1-py2.py3-none-any.whl
  ERROR: Package 'sphinxcontrib-jsmath' requires a different Python: 2.7.18 not in '>=3.5'
```
2020-08-15 12:10:18 +02:00

28 lines
592 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
}:
buildPythonPackage rec {
pname = "sphinxcontrib-jsmath";
version = "1.0.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8";
};
# Check is disabled due to circular dependency of sphinx
doCheck = false;
meta = with stdenv.lib; {
description = "sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript.";
homepage = "http://sphinx-doc.org/";
license = licenses.bsd0;
};
}