forked from mirrors/nixpkgs
Merge pull request #215614 from benxiao/add-fastai
This commit is contained in:
commit
9918d65381
|
@ -12995,6 +12995,12 @@
|
|||
githubId = 12877905;
|
||||
name = "Roman Volosatovs";
|
||||
};
|
||||
rxiao = {
|
||||
email = "ben.xiao@me.com";
|
||||
github = "benxiao";
|
||||
githubId = 10908495;
|
||||
name = "Ran Xiao";
|
||||
};
|
||||
ryanartecona = {
|
||||
email = "ryanartecona@gmail.com";
|
||||
github = "ryanartecona";
|
||||
|
|
33
pkgs/development/python-modules/execnb/default.nix
Normal file
33
pkgs/development/python-modules/execnb/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fastcore
|
||||
, traitlets
|
||||
, ipython
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "execnb";
|
||||
version = "0.1.4";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-y9gSvzJA8Fsh56HbA8SszlozsBBfTLfgWGDXm9uSBvA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ fastcore traitlets ipython ];
|
||||
|
||||
# no real tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "execnb" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fastai/execnb";
|
||||
description = "Execute a jupyter notebook, fast, without needing jupyter";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rxiao ];
|
||||
};
|
||||
}
|
53
pkgs/development/python-modules/fastai/default.nix
Normal file
53
pkgs/development/python-modules/fastai/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fastprogress
|
||||
, fastcore
|
||||
, fastdownload
|
||||
, torch
|
||||
, torchvision
|
||||
, matplotlib
|
||||
, pillow
|
||||
, scikit-learn
|
||||
, scipy
|
||||
, spacy
|
||||
, pandas
|
||||
, requests
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastai";
|
||||
version = "2.7.10";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-zO9qGFrjpjfvybzZ/qjki3X0VNDrrTtt9CbyL64gA50=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fastprogress
|
||||
fastcore
|
||||
fastdownload
|
||||
torchvision
|
||||
matplotlib
|
||||
pillow
|
||||
scikit-learn
|
||||
scipy
|
||||
spacy
|
||||
pandas
|
||||
requests
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "fastai" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fastai/fastai";
|
||||
description = "The fastai deep learning library";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rxiao ];
|
||||
};
|
||||
}
|
32
pkgs/development/python-modules/fastdownload/default.nix
Normal file
32
pkgs/development/python-modules/fastdownload/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fastprogress
|
||||
, fastcore
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastdownload";
|
||||
version = "0.0.6";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-1ayb0zx8rFKDgqlq/tVVLqDkh47T5jofHt53r8bWr30=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ fastprogress fastcore ];
|
||||
|
||||
# no real tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "fastdownload" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fastai/fastdownload";
|
||||
description = "Easily download, verify, and extract archives";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rxiao ];
|
||||
};
|
||||
}
|
36
pkgs/development/python-modules/nbdev/default.nix
Normal file
36
pkgs/development/python-modules/nbdev/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fastprogress
|
||||
, fastcore
|
||||
, asttokens
|
||||
, astunparse
|
||||
, watchdog
|
||||
, execnb
|
||||
, ghapi
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbdev";
|
||||
version = "2.3.11";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-ITMCmuAb1lXONbP5MREpk8vfNSztoTEmT87W1o+fbIU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ fastprogress fastcore asttokens astunparse watchdog execnb ghapi ];
|
||||
# no real tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "nbdev" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/fastai/nbdev";
|
||||
description = "Create delightful software with Jupyter Notebooks";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rxiao ];
|
||||
};
|
||||
}
|
|
@ -3192,6 +3192,8 @@ self: super: with self; {
|
|||
|
||||
exchangelib = callPackage ../development/python-modules/exchangelib { };
|
||||
|
||||
execnb = callPackage ../development/python-modules/execnb { };
|
||||
|
||||
execnet = callPackage ../development/python-modules/execnet { };
|
||||
|
||||
executing = callPackage ../development/python-modules/executing { };
|
||||
|
@ -3277,6 +3279,8 @@ self: super: with self; {
|
|||
|
||||
faraday-plugins = callPackage ../development/python-modules/faraday-plugins { };
|
||||
|
||||
fastai = callPackage ../development/python-modules/fastai { };
|
||||
|
||||
fastapi = callPackage ../development/python-modules/fastapi { };
|
||||
|
||||
fastapi-mail = callPackage ../development/python-modules/fastapi-mail { };
|
||||
|
@ -3291,6 +3295,8 @@ self: super: with self; {
|
|||
|
||||
fastdiff = callPackage ../development/python-modules/fastdiff { };
|
||||
|
||||
fastdownload = callPackage ../development/python-modules/fastdownload { };
|
||||
|
||||
fastdtw = callPackage ../development/python-modules/fastdtw { };
|
||||
|
||||
fastecdsa = callPackage ../development/python-modules/fastecdsa { };
|
||||
|
@ -6298,6 +6304,8 @@ self: super: with self; {
|
|||
|
||||
nbconvert = callPackage ../development/python-modules/nbconvert { };
|
||||
|
||||
nbdev = callPackage ../development/python-modules/nbdev { };
|
||||
|
||||
nbdime = callPackage ../development/python-modules/nbdime { };
|
||||
|
||||
nbformat = callPackage ../development/python-modules/nbformat { };
|
||||
|
|
Loading…
Reference in a new issue