From 6dca90784ae865d815cb1a91d9a34661e638576b Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Tue, 28 Jan 2020 16:50:39 -0500 Subject: [PATCH] python3Packages.pywick: init at 0.5.6 --- .../python-modules/pywick/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/pywick/default.nix diff --git a/pkgs/development/python-modules/pywick/default.nix b/pkgs/development/python-modules/pywick/default.nix new file mode 100644 index 000000000000..c675686ef833 --- /dev/null +++ b/pkgs/development/python-modules/pywick/default.nix @@ -0,0 +1,48 @@ +{ buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytest +, h5py +, hickle +, numpy +, pandas +, pillow +, six +, pytorch +, torchvision +, tqdm +, lib +}: + +buildPythonPackage rec { + pname = "pywick"; + version = "0.5.6"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "achaiah"; + repo = pname; + rev = "v${version}"; + sha256 = "1gmlifnv9kji0d1jwg1pa8d96zg48w17qg0sgxwy1y1jf3hn37bm"; + }; + + propagatedBuildInputs = [ + h5py hickle numpy pandas pillow six pytorch torchvision tqdm + ]; + + checkInputs = [ pytest ]; + + checkPhase = '' + runHook preCheck + pytest tests/ + runHook postCheck + ''; + + meta = { + description = "High-level training framework for Pytorch"; + homepage = "https://github.com/achaiah/pywick"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 46e5fc00b445..f13129b74d52 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1317,6 +1317,8 @@ in { pywebpush = callPackage ../development/python-modules/pywebpush { }; + pywick = callPackage ../development/python-modules/pywick { }; + pyxml = disabledIf isPy3k (callPackage ../development/python-modules/pyxml{ }); pyvcd = callPackage ../development/python-modules/pyvcd { };