uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
90
pkgs/development/python-modules/virtualenv/default.nix
Normal file
90
pkgs/development/python-modules/virtualenv/default.nix
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, isPy27
|
||||
, backports-entry-points-selectable
|
||||
, cython
|
||||
, distlib
|
||||
, fetchPypi
|
||||
, filelock
|
||||
, flaky
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, pathlib2
|
||||
, platformdirs
|
||||
, pytest-freezegun
|
||||
, pytest-mock
|
||||
, pytest-timeout
|
||||
, pytestCheckHook
|
||||
, setuptools-scm
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "virtualenv";
|
||||
version = "20.14.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-jltAIDcocSboHM3pQyuVqL5bGdNlhPZJVwYKNIjBHKg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
backports-entry-points-selectable
|
||||
distlib
|
||||
filelock
|
||||
platformdirs
|
||||
six
|
||||
] ++ lib.optionals (pythonOlder "3.4" && !stdenv.hostPlatform.isWindows) [
|
||||
pathlib2
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
importlib-resources
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
patches = lib.optionals (isPy27) [
|
||||
./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
cython
|
||||
flaky
|
||||
pytest-freezegun
|
||||
pytest-mock
|
||||
pytest-timeout
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# Ignore tests which require network access
|
||||
disabledTestPaths = [
|
||||
"tests/unit/create/test_creator.py"
|
||||
"tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Permission Error
|
||||
"test_bad_exe_py_info_no_raise"
|
||||
] ++ lib.optionals isPy27 [
|
||||
"test_python_via_env_var"
|
||||
"test_python_multi_value_prefer_newline_via_env_var"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "virtualenv" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to create isolated Python environments";
|
||||
homepage = "http://www.virtualenv.org";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ goibhniu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue