3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #12552 from NixOS/python-wip

pythonPackages: update setuptools, many updates and fixes
This commit is contained in:
Frederik Rietdijk 2016-01-27 13:19:00 +01:00
commit e366168d22
8 changed files with 952 additions and 320 deletions

View file

@ -6,8 +6,8 @@ let
sha256 = "1sl642ncvipqx0hzypvl5hsiqngy0sib0kq242g4mic7vnid6bn9";
};
setuptools_source = fetchurl {
url = "https://pypi.python.org/packages/3.4/s/setuptools/setuptools-18.2-py2.py3-none-any.whl";
sha256 = "0jhafl8wmjc8xigl1ib5hqiq9crmipcz0zcga52riymgqbf2bzh4";
url = "https://pypi.python.org/packages/3.5/s/setuptools/setuptools-19.4-py2.py3-none-any.whl";
sha256 = "0801e6d862ca4ce24d918420d62f07ee2fe736dc016e3afa99d2103e7a02e9a6";
};
in stdenv.mkDerivation rec {
name = "python-${python.version}-bootstrapped-pip-${version}";

View file

@ -112,7 +112,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
postFixup = attrs.postFixup or ''
wrapPythonPrograms
# check if we have two packagegs with the same name in closure and fail
# check if we have two packages with the same name in closure and fail
# this shouldn't happen, something went wrong with dependencies specs
${python.interpreter} ${./catch_conflicts.py}
'';
@ -135,7 +135,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
} // meta // {
# add extra maintainer(s) to every package
maintainers = (meta.maintainers or []) ++ [ chaoflow iElectric ];
# a marker for release utilies to discover python packages
# a marker for release utilities to discover python packages
isBuildPythonPackage = python.meta.platforms;
};
})

View file

@ -1,23 +0,0 @@
{ stdenv, fetchurl, astroid, buildPythonPackage }:
buildPythonPackage rec {
name = "pylint-1.4.1";
namePrefix = "";
src = fetchurl {
url = "https://pypi.python.org/packages/source/p/pylint/${name}.tar.gz";
sha256 = "0c7hw1pcp5sqmc0v86zygw21isfgzbsqdmlb1sywncnlxmh30f1y";
};
propagatedBuildInputs = [ astroid ];
postInstall = ''
mkdir -p $out/share/emacs/site-lisp
cp "elisp/"*.el $out/share/emacs/site-lisp/
'';
meta = {
homepage = http://www.logilab.org/project/pylint;
description = "A bug and style checker for Python";
};
}

View file

@ -1,14 +1,14 @@
{ stdenv, fetchurl, python, wrapPython }:
{ stdenv, lib, fetchurl, python, wrapPython }:
stdenv.mkDerivation rec {
shortName = "setuptools-${version}";
name = "${python.executable}-${shortName}";
version = "18.2"; # 18.4 breaks python34Packages.characteristic and many others
version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others
src = fetchurl {
url = "http://pypi.python.org/packages/source/s/setuptools/${shortName}.tar.gz";
sha256 = "07avbdc26yl2a46s76fc7m4vg611g8sh39l26x9dr9byya6sb509";
sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf";
};
buildInputs = [ python wrapPython ];
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
description = "Utilities to facilitate the installation of Python packages";
homepage = http://pypi.python.org/pypi/setuptools;
license = [ "PSF" "ZPL" ];
license = with lib.licenses; [ psfl zpt20 ];
platforms = platforms.all;
};
}

View file

@ -26,7 +26,7 @@ buildPythonPackage rec {
propagatedBuildInputs = with pythonPackages; [
blist canonicaljson daemonize dateutil frozendict pillow pybcrypt pyasn1
pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests2
service-identity signedjson systemd twisted15 ujson unpaddedbase64 pyyaml
service-identity signedjson systemd twisted ujson unpaddedbase64 pyyaml
matrix-angular-sdk
];

View file

@ -11,7 +11,8 @@
buildPythonPackage rec {
name = "youtube-dl-2016.01.01";
name = "youtube-dl-${version}";
version = "2016.01.01";
src = fetchurl {
url = "http://yt-dl.org/downloads/${stdenv.lib.getVersion name}/${name}.tar.gz";
@ -24,6 +25,9 @@ buildPythonPackage rec {
postInstall = stdenv.lib.optionalString (ffmpeg != null)
''wrapProgram $out/bin/youtube-dl --prefix PATH : "${ffmpeg}/bin"'';
# Requires network
doCheck = false;
meta = with stdenv.lib; {
homepage = http://rg3.github.io/youtube-dl/;
repositories.git = https://github.com/rg3/youtube-dl.git;

View file

@ -1458,7 +1458,7 @@ let
f2fs-tools = callPackage ../tools/filesystems/f2fs-tools { };
fabric = pythonPackages.fabric;
Fabric = pythonPackages.Fabric;
fail2ban = callPackage ../tools/security/fail2ban { };
@ -15525,7 +15525,7 @@ let
nixops = callPackage ../tools/package-management/nixops { };
nixopsUnstable = callPackage ../tools/package-management/nixops/unstable.nix { };
nixopsUnstable = nixops;# callPackage ../tools/package-management/nixops/unstable.nix { };
nixui = callPackage ../tools/package-management/nixui { node_webkit = nwjs_0_12; };

File diff suppressed because it is too large Load diff