pythonPackages.backports_shutil_get_terminal_size: 1.0 -> 2016-02-21 (#42840)
This commit is contained in:
parent
c5fd7d85ce
commit
dcc1013f6b
@ -104,13 +104,6 @@ stdenv.mkDerivation rec {
|
|||||||
# https://trac.sagemath.org/ticket/24935
|
# https://trac.sagemath.org/ticket/24935
|
||||||
./patches/sphinx-1.7.patch
|
./patches/sphinx-1.7.patch
|
||||||
|
|
||||||
# https://trac.sagemath.org/ticket/25320
|
|
||||||
(fetchpatch {
|
|
||||||
name = "zero_division_error_formatting.patch";
|
|
||||||
url = "https://git.sagemath.org/sage.git/patch/?h=f79070ddd09fa0ad6b340b097bd8d690a7aa35f0";
|
|
||||||
sha256 = "02wsc3wbp8g8dk5jcjyv18d9v537h3zp5v8lwir46j4na4kj0dlb";
|
|
||||||
})
|
|
||||||
|
|
||||||
# Adapt hashes to new boost version
|
# Adapt hashes to new boost version
|
||||||
# https://trac.sagemath.org/ticket/22243
|
# https://trac.sagemath.org/ticket/22243
|
||||||
# (this ticket doesn't only upgrade boost but also avoids this problem in the future)
|
# (this ticket doesn't only upgrade boost but also avoids this problem in the future)
|
||||||
|
@ -1,26 +1,35 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pytest
|
, pytest
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
||||||
pname = "backports.shutil_get_terminal_size";
|
pname = "backports.shutil_get_terminal_size";
|
||||||
version = "1.0.0";
|
version = "unstable-2016-02-21";
|
||||||
|
|
||||||
src = fetchPypi {
|
# there have been numerous fixes commited since the initial release.
|
||||||
inherit pname version;
|
# Most notably fixing a problem where the backport would always return
|
||||||
sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80";
|
# terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5.
|
||||||
|
# Unfortunately the maintainer seems inactive and has not responded to
|
||||||
|
# a request for a new release since 2016:
|
||||||
|
# https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "chrippa";
|
||||||
|
repo = "backports.shutil_get_terminal_size";
|
||||||
|
rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a";
|
||||||
|
sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A backport of the get_terminal_size function from Python 3.3’s shutil.";
|
description = "A backport of the get_terminal_size function from Python 3.3’s shutil.";
|
||||||
homepage = https://github.com/chrippa/backports.shutil_get_terminal_size;
|
homepage = https://github.com/chrippa/backports.shutil_get_terminal_size;
|
||||||
license = with lib.licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ timokau ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user