Merge pull request #43972 from NixOS/python-unstable

Python packages: major updates
This commit is contained in:
Frederik Rietdijk
2018-07-26 16:16:10 +02:00
committed by GitHub
215 changed files with 903 additions and 789 deletions

View File

@@ -1,6 +1,6 @@
{ lib, python }:
{ lib, python3, fetchpatch, git }:
let newPython = python.override {
let newPython = python3.override {
packageOverrides = self: super: {
distro = super.distro.overridePythonAttrs (oldAttrs: rec {
version = "1.1.0";
@@ -16,30 +16,48 @@ let newPython = python.override {
sha256 = "1080pdxrvnkr8i7b7bk0dfx6cwrkkzzfaranl7207q6rdybzqay3";
};
});
astroid = super.astroid.overridePythonAttrs (oldAttrs: rec {
version = "1.6.5";
src = oldAttrs.src.override {
inherit version;
sha256 = "fc9b582dba0366e63540982c3944a9230cbc6f303641c51483fa547dcc22393a";
};
});
pylint = super.pylint.overridePythonAttrs (oldAttrs: rec {
version = "1.8.4";
src = oldAttrs.src.override {
inherit version;
sha256 = "34738a82ab33cbd3bb6cd4cef823dbcabdd2b6b48a4e3a3054a2bbbf0c712be9";
};
});
};
};
in newPython.pkgs.buildPythonApplication rec {
version = "1.5.2";
version = "1.6.0";
pname = "conan";
src = newPython.pkgs.fetchPypi {
inherit pname version;
sha256 = "0r5ymq27j60py1fb396zshq7z6adda34a857lwrj3k8hqhs0ihpp";
sha256 = "386476d3af1fa390e4cd96e737876e7d1f1c0bca09519e51fd44c1bb45990caa";
};
postPatch = ''
# Remove pylint constraint
substituteInPlace conans/requirements.txt --replace ", <1.9.0" ""
'';
# Bump PyYAML to 3.13
patches = fetchpatch {
url = https://github.com/conan-io/conan/commit/9d3d7a5c6e89b3aa321735557e5ad3397bb80568.patch;
sha256 = "1qdy6zj3ypl1bp9872mzaqg1gwigqldxb1glvrkq3p4za62p546k";
};
checkInputs = with newPython.pkgs; [
checkInputs = [
git
] ++ (with newPython.pkgs; [
nose
parameterized
mock
webtest
codecov
];
]);
propagatedBuildInputs = with newPython.pkgs; [
requests fasteners pyyaml pyjwt colorama patch
@@ -47,9 +65,10 @@ in newPython.pkgs.buildPythonApplication rec {
future pygments mccabe deprecation
];
preCheck = ''
checkPhase = ''
export HOME="$TMP/conan-home"
mkdir -p "$HOME"
nosetests conans.test
'';
meta = with lib; {

View File

@@ -0,0 +1,28 @@
{ python3, glibcLocales, lib }:
with python3.pkgs;
buildPythonApplication rec {
version = "0.4.1";
pname = "ghp-import";
src = fetchPypi {
inherit pname version;
sha256 = "6058810e1c46dd3b5b1eee87e203bdfbd566e10cfc77566edda7aa4dbf6a3053";
};
disabled = isPyPy;
buildInputs = [ glibcLocales ];
LC_ALL="en_US.UTF-8";
# No tests available
doCheck = false;
meta = {
description = "Copy your docs directly to the gh-pages branch";
homepage = "https://github.com/davisp/ghp-import";
license = "Tumbolia Public License";
maintainers = with lib.maintainers; [ garbas ];
};
}

View File

@@ -2,16 +2,16 @@
with python3Packages; buildPythonApplication rec {
name = "${pname}-${version}";
pname = "pipenv";
version = "2018.5.18";
version = "2018.7.1";
src = fetchPypi {
inherit pname version;
sha256 = "1knyknmykjj7gixdpfyns77sv4mizl68addk09ajmw9z5aqaif84";
sha256 = "0fpnfxdkymz9an3m6isq5g24ykd6hnkjc8llfnvbmnakz1sd0sxv";
};
LC_ALL = "en_US.UTF-8";
propagatedBuildInputs = [ pew pip requests flake8 ];
propagatedBuildInputs = [ pew pip requests flake8 parver invoke ];
doCheck = false;