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
49 lines
924 B
Nix
49 lines
924 B
Nix
{
|
|
lib,
|
|
appdirs,
|
|
buildPythonPackage,
|
|
distro,
|
|
fetchFromGitHub,
|
|
filelock,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
requests,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iterative-telemtry";
|
|
version = "0.0.10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = "telemetry-python";
|
|
tag = version;
|
|
hash = "sha256-+l9JH9MbN+Pai3MIcKZJObzoPGhQipfMd7T8v4SoSws=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
requests
|
|
appdirs
|
|
filelock
|
|
distro
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "iterative_telemetry" ];
|
|
|
|
meta = {
|
|
description = "Common library to send usage telemetry";
|
|
homepage = "https://github.com/iterative/iterative-telemetry";
|
|
changelog = "https://github.com/iterative/iterative-telemetry/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|