Skip to content

Commit

Permalink
pythonPackages.pygments: move expression to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed May 7, 2017
1 parent d316088 commit 2f3cfe6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 23 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/Pygments/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
}:

buildPythonPackage rec {
pname = "Pygments";
version = "2.2.0";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
};

propagatedBuildInputs = [ docutils ];

# Circular dependency with sphinx
doCheck = false;

meta = {
homepage = http://pygments.org/;
description = "A generic syntax highlighter";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ nckx garbas ];
};
}
26 changes: 3 additions & 23 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19902,38 +19902,18 @@ in {
};
};

pygments = buildPythonPackage rec {
version = "2.2.0";
name = "Pygments-${version}";

src = pkgs.fetchurl {
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
};

propagatedBuildInputs = with self; [ docutils ];

# Circular dependency with sphinx
doCheck = false;

meta = {
homepage = http://pygments.org/;
description = "A generic syntax highlighter";
license = licenses.bsd2;
maintainers = with maintainers; [ nckx garbas ];
};
};
pygments = callPackage ../development/python-modules/Pygments { };

# For Pelican 3.6.3
pygments_2_0 = self.pygments.override rec {
pygments_2_0 = self.pygments.overrideAttrs( oldAttrs: rec {
version = "2.0.2";
name = "Pygments-${version}";

src = pkgs.fetchurl {
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
sha256 = "7320919084e6dac8f4540638a46447a3bd730fca172afc17d2c03eed22cf4f51";
};
};
});

pygpgme = buildPythonPackage rec {
version = "0.3";
Expand Down

1 comment on commit 2f3cfe6

@matthewbauer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably just a flaky test in Sphinx but this is causing Sphinx to fail:

http://hydra.nixos.org/build/52574081/nixlog/1

Please sign in to comment.