14 buildPythonPackage rec {
15 pname = "gradient-utils";
19 disabled = pythonOlder "3.6";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-swnl0phdOsBSP8AX/OySI/aYI9z60Ss3SsJox/mb9KY=";
32 propagatedBuildInputs = [
45 # https://github.com/Paperspace/gradient-utils/issues/68
46 # https://github.com/Paperspace/gradient-utils/issues/72
47 substituteInPlace pyproject.toml \
48 --replace 'wheel = "^0.35.1"' 'wheel = "*"' \
49 --replace 'prometheus-client = ">=0.8,<0.10"' 'prometheus-client = "*"' \
50 --replace 'pymongo = "^3.11.0"' 'pymongo = ">=3.11.0"'
54 export HOSTNAME=myhost-experimentId
58 # Requires a working Prometheus push gateway
59 "tests/integration/test_metrics.py"
62 pythonImportsCheck = [
67 description = "Python utils and helpers library for Gradient";
68 homepage = "https://github.com/Paperspace/gradient-utils";
69 license = licenses.mit;
70 maintainers = with maintainers; [ freezeboy ];
71 platforms = platforms.unix;