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
45 lines
899 B
Nix
45 lines
899 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dulwich,
|
|
fetchFromGitHub,
|
|
gitpython,
|
|
requests,
|
|
setuptools-scm,
|
|
voluptuous,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-studio-client";
|
|
version = "0.22.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = "dvc-studio-client";
|
|
tag = version;
|
|
hash = "sha256-pMjLbtsUD0fj4OcJI8FufQRYe7HJ0S8z1jYK0Ri7uWA=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
dulwich
|
|
gitpython
|
|
requests
|
|
voluptuous
|
|
];
|
|
|
|
pythonImportsCheck = [ "dvc_studio_client" ];
|
|
|
|
# Tests try to access network
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Library to post data from DVC/DVCLive to Iterative Studio";
|
|
homepage = "https://github.com/iterative/dvc-studio-client";
|
|
changelog = "https://github.com/iterative/dvc-studio-client/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|