Skip to content

Commit

Permalink
python3Packages.ignite: init at 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdarwin committed Jan 14, 2020
1 parent 1c61343 commit 1dc1420
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/ignite/default.nix
@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, mock
, pytorch
, pynvml
, scikitlearn
, tqdm
}:

buildPythonPackage rec {
pname = "ignite";
version = "0.2.1";

src = fetchFromGitHub {
owner = "pytorch";
repo = pname;
rev = "v${version}";
sha256 = "15k6dd11yxn4923llcpmw4srl1by5ljhh7aw5pnkn4n4qpywh6cm";
};

checkInputs = [ pytest mock ];

checkPhase = ''
pytest -k 'not visdom and not tensorboard and not mlflow and not polyaxon' tests/
'';
# these packages are not currently in nixpkgs

propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];

meta = with lib; {
description = "High-level training library for PyTorch";
homepage = https://pytorch.org/ignite;
license = licenses.bsd3;
maintainers = [ maintainers.bcdarwin ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -761,6 +761,8 @@ in {

i3ipc = callPackage ../development/python-modules/i3ipc { };

ignite = callPackage ../development/python-modules/ignite { };

ihatemoney = callPackage ../development/python-modules/ihatemoney { };

imutils = callPackage ../development/python-modules/imutils { };
Expand Down

0 comments on commit 1dc1420

Please sign in to comment.