pythonPackages.mnist: init at 0.2.2
This commit is contained in:
parent
b0157e3a7f
commit
3936a4835a
|
@ -0,0 +1,36 @@
|
||||||
|
{ buildPythonPackage, fetchFromGitHub, isPy27, lib, mock, numpy, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "mnist";
|
||||||
|
version = "0.2.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "datapythonista";
|
||||||
|
repo = "mnist";
|
||||||
|
rev = "${pname}-${version}";
|
||||||
|
sha256 = "17r37pbxiv5dw857bmg990x836gq6sgww069w3q5jjg9m3xdm7dh";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 mock;
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
dontUseSetuptoolsCheck = true;
|
||||||
|
|
||||||
|
# disable tests which fail due to socket related errors
|
||||||
|
disabledTests = [
|
||||||
|
"test_test_images_has_right_size"
|
||||||
|
"test_test_labels_has_right_size"
|
||||||
|
"test_train_images_has_right_size"
|
||||||
|
"test_train_labels_has_right_size"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python utilities to download and parse the MNIST dataset";
|
||||||
|
homepage = "https://github.com/datapythonista/mnist";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ dmrauh ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -770,6 +770,8 @@ in {
|
||||||
|
|
||||||
mkl-service = callPackage ../development/python-modules/mkl-service { };
|
mkl-service = callPackage ../development/python-modules/mkl-service { };
|
||||||
|
|
||||||
|
mnist = callPackage ../development/python-modules/mnist { };
|
||||||
|
|
||||||
monkeyhex = callPackage ../development/python-modules/monkeyhex { };
|
monkeyhex = callPackage ../development/python-modules/monkeyhex { };
|
||||||
|
|
||||||
monty = callPackage ../development/python-modules/monty { };
|
monty = callPackage ../development/python-modules/monty { };
|
||||||
|
|
Loading…
Reference in New Issue