Merge pull request #42782 from dotlambda/dateutil-2.7-fixes

Fix packages broken by python-dateutil bump
This commit is contained in:
xeji 2018-06-30 00:42:21 +02:00 committed by GitHub
commit ad112ca0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 19 deletions

View File

@ -1,8 +1,22 @@
{ stdenv, pkgs, python3Packages }: { stdenv, pkgs, python3 }:
with python3Packages; let
python = python3.override {
packageOverrides = self: super: {
buildPythonApplication rec { # https://github.com/pimutils/khal/issues/780
python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
version = "2.6.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
};
});
};
};
in with python.pkgs; buildPythonApplication rec {
pname = "khal"; pname = "khal";
version = "0.9.9"; version = "0.9.9";
@ -29,10 +43,11 @@ buildPythonApplication rec {
pkginfo pkginfo
freezegun freezegun
]; ];
buildInputs = [ setuptools_scm pytest pkgs.glibcLocales ]; nativeBuildInputs = [ setuptools_scm pkgs.glibcLocales ];
checkInputs = [ pytest ];
checkPhase = '' checkPhase = ''
# py.test py.test
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,4 +1,5 @@
{ stdenv, fetchPypi, buildPythonPackage, dateutil, pytzdata, tzlocal }: { lib, fetchPypi, buildPythonPackage, pythonOlder
, dateutil, pytzdata, typing }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pendulum"; pname = "pendulum";
@ -9,12 +10,12 @@ buildPythonPackage rec {
sha256 = "544e44d8a92954e5ef4db4fa8b662d3282f2ac7b7c2cbf4227dc193ba78b9e1e"; sha256 = "544e44d8a92954e5ef4db4fa8b662d3282f2ac7b7c2cbf4227dc193ba78b9e1e";
}; };
propagatedBuildInputs = [ dateutil pytzdata tzlocal ]; propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing;
# No tests # No tests
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with lib; {
description = "Python datetimes made easy"; description = "Python datetimes made easy";
homepage = https://github.com/sdispater/pendulum; homepage = https://github.com/sdispater/pendulum;
license = licenses.mit; license = licenses.mit;

View File

@ -28,6 +28,9 @@ buildPythonPackage rec {
py.test py.test
''; '';
# https://github.com/kevin1024/pytest-httpbin/pull/51
doCheck = false;
meta = { meta = {
description = "Easily test your HTTP library against a local copy of httpbin.org"; description = "Easily test your HTTP library against a local copy of httpbin.org";
homepage = https://github.com/kevin1024/pytest-httpbin; homepage = https://github.com/kevin1024/pytest-httpbin;

View File

@ -1,11 +1,26 @@
{ stdenv, fetchFromGitHub, python3Packages }: { stdenv, fetchFromGitHub, python3 }:
let let
version = "2.1.9"; version = "2.1.9";
sha256 = "1sywxn7j9bq39qwq74h327crc44j9049cykai1alv44agx8s1nhz"; sha256 = "1sywxn7j9bq39qwq74h327crc44j9049cykai1alv44agx8s1nhz";
python = python3.override {
packageOverrides = self: super: {
# https://github.com/eventable/vobject/issues/112
python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
version = "2.6.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
};
});
};
};
in in
python3Packages.buildPythonApplication { python.pkgs.buildPythonApplication {
name = "radicale-${version}"; name = "radicale-${version}";
inherit version; inherit version;
@ -18,7 +33,7 @@ python3Packages.buildPythonApplication {
doCheck = false; doCheck = false;
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python.pkgs; [
vobject vobject
passlib passlib
pytz pytz

View File

@ -1,12 +1,24 @@
{ buildPythonApplication, lib, fetchFromGitHub, bashInteractive { buildPythonApplication, lib, fetchFromGitHub, bashInteractive
, argcomplete, arxiv2bib, beautifulsoup4, bibtexparser , python3, vim
, configparser, dmenu-python, habanero, papis-python-rofi
, pylibgen, prompt_toolkit, pyparser, pytest, python_magic
, pyyaml, requests, unidecode, urwid, vobject, tkinter
, vim
}: }:
buildPythonApplication rec { let
python = python3.override {
packageOverrides = self: super: {
# https://github.com/eventable/vobject/issues/112
python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
version = "2.6.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
};
});
};
};
in python.pkgs.buildPythonApplication rec {
pname = "papis"; pname = "papis";
version = "0.5.3"; version = "0.5.3";
@ -23,7 +35,7 @@ buildPythonApplication rec {
patchShebangs tests patchShebangs tests
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = with python.pkgs; [
argcomplete arxiv2bib beautifulsoup4 bibtexparser argcomplete arxiv2bib beautifulsoup4 bibtexparser
configparser dmenu-python habanero papis-python-rofi configparser dmenu-python habanero papis-python-rofi
pylibgen prompt_toolkit pyparser python_magic pyyaml pylibgen prompt_toolkit pyparser python_magic pyyaml
@ -31,7 +43,7 @@ buildPythonApplication rec {
vim vim
]; ];
checkInputs = [ pytest ]; checkInputs = with python.pkgs; [ pytest ];
# Papis tries to create the config folder under $HOME during the tests # Papis tries to create the config folder under $HOME during the tests
checkPhase = '' checkPhase = ''