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
69
pkgs/development/python-modules/fs/default.nix
Normal file
69
pkgs/development/python-modules/fs/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, glibcLocales
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, appdirs
|
||||
, scandir ? null
|
||||
, backports_os ? null
|
||||
, typing ? null
|
||||
, pytz
|
||||
, enum34
|
||||
, pyftpdlib
|
||||
, psutil
|
||||
, mock
|
||||
, pythonAtLeast
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fs";
|
||||
version = "2.4.15";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-sJ0CwxH0rdHm4rdXJMRQ6vz+7MkXV5IkyorSHazQoYI=";
|
||||
};
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
# strong cycle with paramaterized
|
||||
doCheck = false;
|
||||
checkInputs = [ pyftpdlib mock psutil pytestCheckHook ];
|
||||
propagatedBuildInputs = [ six appdirs pytz ]
|
||||
++ lib.optionals (!isPy3k) [ backports_os ]
|
||||
++ lib.optionals (!pythonAtLeast "3.6") [ typing ]
|
||||
++ lib.optionals (!pythonAtLeast "3.5") [ scandir ]
|
||||
++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ];
|
||||
|
||||
LC_ALL="en_US.utf-8";
|
||||
|
||||
preCheck = ''
|
||||
HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "--ignore=tests/test_opener.py" ];
|
||||
|
||||
disabledTests = [
|
||||
"user_data_repr"
|
||||
] ++ lib.optionals (stdenv.isDarwin) [ # remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved
|
||||
"test_ftpfs"
|
||||
] ++ lib.optionals (pythonAtLeast "3.9") [
|
||||
# update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040
|
||||
# merged into master, able to be removed after >2.4.1
|
||||
"test_copy_sendfile"
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Filesystem abstraction";
|
||||
homepage = "https://github.com/PyFilesystem/pyfilesystem2";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue