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
97
pkgs/applications/version-management/dvc/default.nix
Normal file
97
pkgs/applications/version-management/dvc/default.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, enableGoogle ? false
|
||||
, enableAWS ? false
|
||||
, enableAzure ? false
|
||||
, enableSSH ? false
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "dvc";
|
||||
version = "2.10.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iterative";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-boaQSg0jajWQZKB5wvcP2musVR2/pifT4pU64Y5hiQ0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
setuptools-scm
|
||||
setuptools-scm-git-archive
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
aiohttp-retry
|
||||
appdirs
|
||||
colorama
|
||||
configobj
|
||||
configobj
|
||||
dictdiffer
|
||||
diskcache
|
||||
distro
|
||||
dpath
|
||||
dvclive
|
||||
dvc-render
|
||||
flatten-dict
|
||||
flufl_lock
|
||||
funcy
|
||||
grandalf
|
||||
nanotime
|
||||
networkx
|
||||
packaging
|
||||
pathspec
|
||||
ply
|
||||
psutil
|
||||
pydot
|
||||
pygtrie
|
||||
pyparsing
|
||||
python-benedict
|
||||
requests
|
||||
rich
|
||||
ruamel-yaml
|
||||
scmrepo
|
||||
shortuuid
|
||||
shtab
|
||||
tabulate
|
||||
toml
|
||||
tqdm
|
||||
typing-extensions
|
||||
voluptuous
|
||||
zc_lockfile
|
||||
] ++ lib.optional enableGoogle [
|
||||
google-cloud-storage
|
||||
] ++ lib.optional enableAWS [
|
||||
boto3
|
||||
] ++ lib.optional enableAzure [
|
||||
azure-storage-blob
|
||||
] ++ lib.optional enableSSH [
|
||||
paramiko
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "grandalf==0.6" "grandalf>=0.6" \
|
||||
--replace "scmrepo==0.0.19" "scmrepo"
|
||||
substituteInPlace dvc/daemon.py \
|
||||
--subst-var-by dvc "$out/bin/dcv"
|
||||
'';
|
||||
|
||||
# Tests require access to real cloud services
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Version Control System for Machine Learning Projects";
|
||||
homepage = "https://dvc.org";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ cmcdragonkai fab ];
|
||||
};
|
||||
}
|
||||
18
pkgs/applications/version-management/dvc/dvc-daemon.patch
Normal file
18
pkgs/applications/version-management/dvc/dvc-daemon.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
diff --git a/dvc/daemon.py b/dvc/daemon.py
|
||||
index 9854a0e1..fefdd613 100644
|
||||
--- a/dvc/daemon.py
|
||||
+++ b/dvc/daemon.py
|
||||
@@ -103,11 +103,8 @@ def daemon(args):
|
||||
logger.debug("skipping launching a new daemon.")
|
||||
return
|
||||
|
||||
- cmd = ["daemon", "-q"] + args
|
||||
-
|
||||
- env = fix_env()
|
||||
- file_path = os.path.abspath(inspect.stack()[0][1])
|
||||
- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
|
||||
+ cmd = [ "@dvc@" , "daemon", "-q"] + args
|
||||
+ env = os.environ.copy()
|
||||
env[DVC_DAEMON] = "1"
|
||||
|
||||
_spawn(cmd, env)
|
||||
Loading…
Add table
Add a link
Reference in a new issue