mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:44:11 +01:00
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
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
configparser,
|
|
decorator,
|
|
fetchFromGitHub,
|
|
mock,
|
|
oauthlib,
|
|
pyjwt,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-mock,
|
|
six,
|
|
tabulate,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "databricks-cli";
|
|
version = "0.18.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "databricks";
|
|
repo = "databricks-cli";
|
|
tag = version;
|
|
hash = "sha256-dH95C2AY/B6F9BROr6rh+gVtKqxsg1gyEU5MzCd5aqs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
configparser
|
|
oauthlib
|
|
pyjwt
|
|
requests
|
|
requests-mock
|
|
six
|
|
tabulate
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
decorator
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Disabled due to option parsing which we don't have
|
|
"integration/dbfs/test_integration.py"
|
|
"integration/workspace/test_integration.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "databricks_cli" ];
|
|
|
|
meta = {
|
|
description = "Command line interface for Databricks";
|
|
homepage = "https://github.com/databricks/databricks-cli";
|
|
changelog = "https://github.com/databricks/databricks-cli/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ tbenst ];
|
|
};
|
|
}
|