mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
python.pkgs.backports_shutil_get_terminal_size: fix python 2 tests
This commit is contained in:
parent
70c1899768
commit
587556ce1d
@ -0,0 +1,26 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
||||||
|
pname = "backports.shutil_get_terminal_size";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
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;
|
||||||
|
license = with lib.licenses; [ mit ];
|
||||||
|
};
|
||||||
|
}
|
@ -1047,21 +1047,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
backports_shutil_get_terminal_size = if !(pythonOlder "3.3") then null else buildPythonPackage rec {
|
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
|
||||||
name = "backports.shutil_get_terminal_size-${version}";
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/b/backports.shutil_get_terminal_size/${name}.tar.gz";
|
|
||||||
sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
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;
|
|
||||||
license = with licenses; [ mit ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
backports_ssl_match_hostname_3_4_0_2 = self.buildPythonPackage rec {
|
backports_ssl_match_hostname_3_4_0_2 = self.buildPythonPackage rec {
|
||||||
name = "backports.ssl_match_hostname-3.4.0.2";
|
name = "backports.ssl_match_hostname-3.4.0.2";
|
||||||
|
Loading…
Reference in New Issue
Block a user