Skip to content

Commit 2f3cfe6

Browse files
committedMay 7, 2017
pythonPackages.pygments: move expression to own file
1 parent d316088 commit 2f3cfe6

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{ lib
2+
, buildPythonPackage
3+
, fetchPypi
4+
, docutils
5+
}:
6+
7+
buildPythonPackage rec {
8+
pname = "Pygments";
9+
version = "2.2.0";
10+
name = "${pname}-${version}";
11+
12+
src = fetchPypi {
13+
inherit pname version;
14+
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
15+
};
16+
17+
propagatedBuildInputs = [ docutils ];
18+
19+
# Circular dependency with sphinx
20+
doCheck = false;
21+
22+
meta = {
23+
homepage = http://pygments.org/;
24+
description = "A generic syntax highlighter";
25+
license = lib.licenses.bsd2;
26+
maintainers = with lib.maintainers; [ nckx garbas ];
27+
};
28+
}

‎pkgs/top-level/python-packages.nix

+3-23
Original file line numberDiff line numberDiff line change
@@ -19902,38 +19902,18 @@ in {
1990219902
};
1990319903
};
1990419904

19905-
pygments = buildPythonPackage rec {
19906-
version = "2.2.0";
19907-
name = "Pygments-${version}";
19908-
19909-
src = pkgs.fetchurl {
19910-
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
19911-
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
19912-
};
19913-
19914-
propagatedBuildInputs = with self; [ docutils ];
19915-
19916-
# Circular dependency with sphinx
19917-
doCheck = false;
19918-
19919-
meta = {
19920-
homepage = http://pygments.org/;
19921-
description = "A generic syntax highlighter";
19922-
license = licenses.bsd2;
19923-
maintainers = with maintainers; [ nckx garbas ];
19924-
};
19925-
};
19905+
pygments = callPackage ../development/python-modules/Pygments { };
1992619906

1992719907
# For Pelican 3.6.3
19928-
pygments_2_0 = self.pygments.override rec {
19908+
pygments_2_0 = self.pygments.overrideAttrs( oldAttrs: rec {
1992919909
version = "2.0.2";
1993019910
name = "Pygments-${version}";
1993119911

1993219912
src = pkgs.fetchurl {
1993319913
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
1993419914
sha256 = "7320919084e6dac8f4540638a46447a3bd730fca172afc17d2c03eed22cf4f51";
1993519915
};
19936-
};
19916+
});
1993719917

1993819918
pygpgme = buildPythonPackage rec {
1993919919
version = "0.3";

1 commit comments

Comments
 (1)

matthewbauer commented on May 8, 2017

@matthewbauer
Member

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.