11 buildPythonPackage rec {
14 format = "setuptools";
16 src = fetchFromGitHub {
17 owner = "datapythonista";
19 rev = "${pname}-${version}";
20 sha256 = "17r37pbxiv5dw857bmg990x836gq6sgww069w3q5jjg9m3xdm7dh";
23 propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 mock;
25 nativeCheckInputs = [ pytestCheckHook ];
27 dontUseSetuptoolsCheck = true;
29 # disable tests which fail due to socket related errors
31 "test_test_images_has_right_size"
32 "test_test_labels_has_right_size"
33 "test_train_images_has_right_size"
34 "test_train_labels_has_right_size"
38 description = "Python utilities to download and parse the MNIST dataset";
39 homepage = "https://github.com/datapythonista/mnist";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ dmrauh ];