Last active
March 18, 2021 22:21
-
-
Save cigrainger/a80dcb6094c39dd9d1d506a13a3a564e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> { } }: | |
with pkgs; | |
let | |
subprocess32 = python38Packages.buildPythonPackage rec { | |
pname = "subprocess32"; | |
version = "3.5.4"; | |
src = python38Packages.fetchPypi { | |
inherit pname version; | |
sha256 = | |
"eb2937c80497978d181efa1b839ec2d9622cf9600a039a79d0e108d1f9aec79d"; | |
}; | |
doCheck = false; | |
meta = { | |
homepage = "https://github.com/google/python-subprocess32"; | |
description = | |
"A backport of the Python 3 subprocess module for use on Python 2"; | |
}; | |
}; | |
wandb = python38Packages.buildPythonPackage rec { | |
pname = "wandb"; | |
version = "0.10.22"; | |
src = python38Packages.fetchPypi { | |
inherit pname version; | |
sha256 = | |
"676a0b78864527ba7e2ed0a5fc34e04c34010f2ee5be87900d704092c86380da"; | |
}; | |
doCheck = false; | |
propagatedBuildInputs = with python38Packages; [ | |
GitPython | |
pyyaml | |
click | |
configparser | |
dateutil | |
docker_pycreds | |
pathtools | |
promise | |
protobuf | |
psutil | |
requests | |
sentry-sdk | |
shortuuid | |
six | |
subprocess32 | |
]; | |
meta = { | |
homepage = "https://github.com/wandb/client"; | |
description = | |
"🔥 A tool for visualizing and tracking your machine learning experiments. This repo contains the CLI and Python API"; | |
}; | |
}; | |
local-python = python38.withPackages (ps: | |
with ps; [ | |
fastapi | |
flake8 | |
ipython | |
mypy | |
pytorch | |
transformers | |
uvicorn | |
wandb | |
]); | |
in mkShell { buildInputs = [ local-python ]; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks so much @aforemny. I've got this working now by writing a derivation for
subprocess32
as well. I'll update the gist with what worked.