1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
bcrypt,
|
|
buildPythonPackage,
|
|
dvc-objects,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
sshfs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-ssh";
|
|
version = "4.2.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "dvc_ssh";
|
|
inherit version;
|
|
hash = "sha256-T6yTLF8ivZRE2H1Oez/9bAnMjlbZjrPG1LRDAdNTUBc=";
|
|
};
|
|
|
|
pythonRemoveDeps = [
|
|
# Prevent circular dependency
|
|
"dvc"
|
|
];
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
bcrypt
|
|
dvc-objects
|
|
sshfs
|
|
];
|
|
|
|
optional-dependencies = {
|
|
gssapi = [ sshfs ];
|
|
};
|
|
|
|
# bcrypt is enabled for sshfs in nixpkgs
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg --replace "sshfs[bcrypt]" "sshfs"
|
|
'';
|
|
|
|
# Network access is needed for tests
|
|
doCheck = false;
|
|
|
|
# Circular dependency
|
|
# pythonImportsCheck = [
|
|
# "dvc_ssh"
|
|
# ];
|
|
|
|
meta = {
|
|
description = "SSH plugin for dvc";
|
|
homepage = "https://pypi.org/project/dvc-ssh/${version}";
|
|
changelog = "https://github.com/iterative/dvc-ssh/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|